Login to participate
Endpoint Management & Virtualization BlogsRSS

Partition Management in WinPE

robertser's picture

Have you ever needed to delete a partition inside of WinPE? Perhaps the machine had a Vista image on it previously and now your new image will not deploy to it. WinPE has a powerful utility built-in to manage partitions called DiskPart. It's a bit complicated at first but follow the steps below and you'll be creating and deleteing partitions in no time.

From the WinPE command prompt type "Diskpart.exe". This will take you to a command prompt inside Diskpart.

To delete the primary partition use the following commands:

  • List Disk
  • Select Disk 0
  • List Partition
  • Select Partition 1
  • Delete Partition override

You may need to change the disk or partition numbers to fit your environment. Use caution when running the delete command because it will delete whatever partition is active. If you get stuck, every command has available help by simply putting a ? after the command.