Skip to content

Instantly share code, notes, and snippets.

@droustchev
Last active December 11, 2015 22:48
Show Gist options
  • Save droustchev/4671780 to your computer and use it in GitHub Desktop.
Save droustchev/4671780 to your computer and use it in GitHub Desktop.
Autounattend.xml snippet for wiping and partitioning the disk.
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition>
<Order>1</Order>
<Size>100</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition>
<Order>2</Order>
<Extend>true</Extend>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Format>NTFS</Format>
<Label>System</Label>
<Active>true</Active>
<TypeID>0x7</TypeID>
</ModifyPartition>
<ModifyPartition>
<Order>2</Order>
<PartitionID>2</PartitionID>
<Format>NTFS</Format>
<Label>OS</Label>
<Letter>C</Letter>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment