This documentation is archived and is not being maintained.

CreatePartitions

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

 

CreatePartition

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

Valid Passes

Parent Hierarchy

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.

<DiskConfiguration>
   <WillShowUI>OnError</WillShowUI>
   <Disk>
      <DiskID>0</DiskID>
      <WillWipeDisk>true</WillWipeDisk>
      <CreatePartitions>
         <CreatePartition>
<!-- Create primary partition, 20 GB -->
            <Order>1</Order>
            <Type>Primary</Type>
            <Size>20000</Size>
         </CreatePartition>
<!-- Create extended partition and fill the rest of the hard disk -->
         <CreatePartition>
            <Order>2</Order>
            <Type>Extended</Type>
            <Extend>true</Extend>
         </CreatePartition>
<!-- Create logical partition within the extended partition, 6 GB -->
         <CreatePartition>
            <Order>3</Order>
            <Type>Logical</Type>
            <Size>6000</Size>
         </CreatePartition>
      </CreatePartitions>
   </Disk>
</DiskConfiguration>

See Also

Concepts

Disk

Show: