DiskConfiguration contains all of the settings that are used to partition and to format hard disks on 32-bit and 64-bit versions of Windows. For 32-bit systems, the format for basic disks is always master boot record (MBR). 64-bit systems can support both MBR and GUID partition table (GPT) formats, but 64-bit systems cannot boot from MBR disks.

DiskConfiguration contains entries for configuring and partitioning one or more physical hard disks. DiskConfiguration is supported only in the windowsPE configuration pass.

DiskConfiguration can contain one or more Disk settings that represent a single hard disk on the computer that you configure.

You can specify that all disk configurations be done manually, by setting only the following:


However, there is no automatic partitioning. The values in Disk are required to complete installation. If no Disk elements are specified and WillShowUI is set to Never, an error is logged, and installation terminates.

Child Elements


Specifies the disk configurations to apply to a disk on the destination computer.


Specifies whether to show the user interface (UI) for this item.

Valid Passes


Parent Hierarchy

Microsoft-Windows-Setup | DiskConfiguration

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 DiskConfiguration shows how to create three different 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