CreatePartitions specifies one or more partitions to create on a hard disk. Partitions are created in the order specified by the Order setting.

If you are installing Windows to a blank hard disk, you must use the CreatePartitions and ModifyPartitions settings to create and format partitions on the disk. You must also specify either the InstallTo or the InstallToAvailablePartition setting.

CreatePartitions settings can have one or more CreatePartition list items, one for each partition to be configured.

Child Elements


Specifies the order, the size, and the type of a single partition to be configured.

Valid Passes


Parent Hierarchy

Microsoft-Windows-Setup | DiskConfiguration | Disk | CreatePartitions

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 create three 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