Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Size
specifies the size of the partition to create, in megabytes.
Values
size_in_megabytes |
Specifies the size of the partition that you create, in megabytes. For example, to create a 2 GB partition, set |
Note
If you specify a size for the partition by using this setting, do not set Extend. If a value for Size
is specified and Extend
is set to true, no partition is created. An error is logged, and installation terminates.
Valid Passes
Parent Hierarchy
Microsoft-Windows-Setup | DiskConfiguration | Disk | CreatePartitions | CreatePartition | Size
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>