Skip to content

Instantly share code, notes, and snippets.

@hempnall
Last active April 13, 2019 05:20
Show Gist options
  • Save hempnall/97c6bd3cb3e0ce283461463160236de5 to your computer and use it in GitHub Desktop.
Save hempnall/97c6bd3cb3e0ce283461463160236de5 to your computer and use it in GitHub Desktop.
autounattend.xml (excerpt)
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>100</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<Label>System</Label>
<PartitionID>1</PartitionID>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>2</Order>
<Format>NTFS</Format>
<PartitionID>2</PartitionID>
<Label>Windows</Label>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
Oscdimg –m –u2 –bc:\Win7ISO\boot\etfsboot.com C:\Win7ISO\ C:\.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment