DiskConfiguration contains the settings that Windows® uses to partition and to configure one or more physical hard disks.

Valid disk partition configurations vary depending on whether you are using a BIOS-based computer or a Unified Extensible Firmware Interface (UEFI)-based computer. For more information, see the Manage Hard Disks and Partitions topic in the Windows® Assessment and Deployment Kit (Windows ADK) Technical Reference.

You can configure disk partitions manually in the disk configuration user interface (UI) in Windows Setup, or automatically by using settings in the Disk element. If you do not specify a Disk element and the WillShowUI setting is set to Never, Windows logs an error, and the installation terminates.

Child Elements


Specifies whether Windows activates encryption on blank drives that are capable of hardware-based encryption.


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


Specifies whether to show the disk configuration UI in Windows Setup.

Valid Configuration Passes


Parent Hierarchy

Microsoft-Windows-Setup | DiskConfiguration

Applies To

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

XML Examples

Manual Configuration

The following XML output for the DiskConfiguration setting shows how to specify that you will configure disk partitions manually through the disk configuration UI in Windows Setup:

  Copy Code

For full XML examples and recommended partition configurations, see How to Configure UEFI/GPT-Based Hard Disk Partitions or How to Configure BIOS/MBR-Based Hard Disk Partitions.

See Also