Share via


Autounattended.xml - Windows 2016 - Forced to Select OS

Question

Wednesday, January 10, 2018 1:06 PM

Hi

I've got previous experience automating windows installs before (desktop and server) but I'm stumped with this one issue with 2016.  

I can't seem to automate the OS selection window, This one...

< not able to upload images but its the OS selection windows within the windows setup >

Here is my code snippet from my Autounattended.xml 

I've tried using /image/name & /image/index

<ImageInstall>

    <OSImage>

        <InstallFrom>

            <MetaData wcm:action="add">

                <Key>/IMAGE/NAME</Key>

                <Value>Windows Server 2016 Standard (Desktop Experience)</Value>

            </MetaData>

        </InstallFrom>               

        <InstallTo>

            <DiskID>0</DiskID>

            <PartitionID>2</PartitionID>

        </InstallTo>

    </OSImage>

</ImageInstall>

I used dism to confirm the image name

my iso is 

SW_DVD9_Win_Svr_STD_Core_and_DataCtr_Core_2016_64Bit_English_-3_MLF_X21-30350.ISO

SHA256          36B60C31CAFA2D488FE5D842D1FFBA623381F5E9F70E9359B3AA05282C9D232D

Anyone else seem this or can offer a share of what you use in your unattended file?

Thanks

Gary

All replies (5)

Thursday, January 11, 2018 9:52 AM

Hi Gary,

I suggest you use <Key>/image/index</Key> instead of Name to specify the index number of the image to install to see whether it works.

More information for you:

Key

/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall-dataimage-installfrom-metadata-key

Best Regards,

Amy

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Thursday, January 18, 2018 4:55 AM

Hi,

Are there any updates at the moment?

Best Regards,

Amy

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Tuesday, March 20, 2018 5:10 PM

Hi Amy,

Was there a resolution for this? Neither /IMAGE/NAME nor /IMAGE/INDEX works for me. This was with /IMAGE/INDEX. 

            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>3</PartitionID>
                    </InstallTo>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Value>0</Value>
                            <Key> /IMAGE/INDEX</Key>
                        </MetaData>
                    </InstallFrom>
                </OSImage>
            </ImageInstall>

Thanks,

Larry


Sunday, April 8, 2018 9:46 PM

I was able to get that working with /IMAGE/INDEX. The issue for me was that I had passed an index that was not valid. I had to go into the image to figure out the correct index.


Thursday, April 11, 2019 3:40 PM

Paying it forward because your post put me on the right path to find the answer. Here's the correct syntax guidelines:

https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall-dataimage-installfrom

For choosing your Image selection you can use either one of these options:

https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall-dataimage-installfrom-metadata-key

Finally, to get your respective Name, Description, or Index values from an install ISO, you'll use dism and point it to your install media for a list of all the respective versions included on your media using this command:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14#get-imageinfo

For some reason the /get-imageinfo cmd doesn't yield the results you'd want, you'll use /get-wiminfo instead. Here is the full command I used that retrieved all the image versions from a vanilla Window 10 1809 ISO:

Dism /Get-WimInfo /WimFile:<Path to Install.wim on your ISO>

This will give you all the respective attributes for each image.