DiskConfiguration

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

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

DisableEncryptedDiskProvisioning

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

Disk

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

WillShowUI

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

Valid Configuration Passes

windowsPE

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:

<DiskConfiguration>
   <WillShowUI>Always</WillShowUI>
</DiskConfiguration>

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

Concepts

Microsoft-Windows-Setup