This documentation is archived and is not being maintained.

Disk

Disk specifies the disk settings to add or to edit on the destination computer. Disk is a list item type, and each instance of Disk in an unattended installation answer file applies to a single hard disk (specified by DiskID).

Child Elements

 

CreatePartitions

Specifies a list of CreatePartition items.

DiskID

Specifies the identification number of the disk to edit.

ModifyPartitions

Specifies a list of ModifyPartition items.

WillWipeDisk

Specifies whether to reformat the disk.

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 DiskConfiguration 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

Show: