Windows Media has multiple versions of Windows to select from and needs an automated method for the unattend file to select the version to install.
Multiversion of Windows installation to select from when using Scripted OS Install
If the media contains multiple version to select from use the unattend file to direct which version to install
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ImageInstall>
<OSImage>
<installFrom>
<MetaData wcm:action="add">
<Key>/image/index</Key>
<Value>3</value>
</MetaData>
</InstallFrom>
<installTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>%PRODUCT_KEY%</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
Explanation. If the media is presented to choose a version of Windows to install from a drop-down list. The hidden value of the OSes to select starts a '1' and continues down the list from there with the first version starting at '1'. then '2', etc
<Key>/image/index</Key>
<Value>3</value>
3 being the value of 'Windows 10 Enterprise'
Now for the partition to install windows would be at
<installTo>
<DiskID>0</DiskID>
This is the first hard drive listed in diskpart
<PartitionID>2</PartitionID>
This is primary partition to install windows ( EFI partition being Partition 1 )
</InstallTo>