WillWipeDisk specifies whether to erase all partitions on the hard disk before adding additional configurations to the disk.

WillWipeDisk is blocked in Windows PE if any of the following conditions are true:

  • Windows Setup binaries are running from the disk in question.
  • The currently running operating system is booted (but not RAM-drive booted) from the disk in question.
  • There is an active page file on the disk in question.



Specifies that the disk is erased.


Specifies that the disk is not erased.

Valid Passes


Parent Hierarchy

Microsoft-Windows-Setup | DiskConfiguration | Disk | WillWipeDisk

Applies To

For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML Example

The following XML output for the DiskConfiguration setting shows how to erase all partitions on a hard disk before creating three new partitions on a hard drive.

<!-- Create primary partition, 20 GB -->
<!-- Create extended partition and fill the rest of the hard disk -->
<!-- Create logical partition within the extended partition, 6 GB -->

See Also