Below is the <DiskConfiguration> section of the Autounattend.xml file for two physical disks, including a system partition, OS partition and Data partition:
Summary:
DiskID 0:
Partition 1, D:, Data, 0x7, Extend
DiskID 1
Partition 1, System 0x27, 300MB
Partition 2, C:, OS, 0x7, Extend
Note, the order of DiskID 0 & Disk ID 1. The SATA drive picks up before the SSD drive, but I want the OS installing to the SSD. (HP 8770w).
Configuration
<DiskConfiguration>
<Disk wcm:action=”add”>
<CreatePartitions>
<CreatePartition wcm:action=”add”>
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action=”add”>
<Active>false</Active>
<Format>NTFS</Format>
<Label>Data</Label>
<Letter>D</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
<TypeID>0x7</TypeID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<Disk wcm:action=”add”>
<CreatePartitions>
<CreatePartition wcm:action=”add”>
<Order>1</Order>
<Size>300</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action=”add”>
<Extend>true</Extend>
<Order>2</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action=”add”>
<Active>false</Active>
<Format>NTFS</Format>
<Label>System</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
<TypeID>0x27</TypeID>
</ModifyPartition>
<ModifyPartition wcm:action=”add”>
<Active>true</Active>
<Format>NTFS</Format>
<Label>OS</Label>
<Letter>C</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
<TypeID>0x7</TypeID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>1</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
Just for reference:
The section that sets “Users” and “ProgramData” to Drive D:
<FolderLocations>
<ProgramData>D:ProgramData</ProgramData>
<ProfilesDirectory>D:Users</ProfilesDirectory>
</FolderLocations>
On fast disks (SSD), I see no merit in changing ProgramData.
And the section that sets the OS install location:
<InstallTo>
<DiskID>1</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
<InstallToAvailablePartition>false</InstallToAvailablePartition>