Share via


DISM apply unattend.xml not working - anyone know why?

Question

Saturday, February 9, 2019 12:04 AM

Hello guys,

    I recently created a unattended windows 10 pro install file in Windows System Image Manager and tries to apply it to a windows install. However, after reboot, the OOBE screen still shows up and it seems like it did not apply any option in that response file. Anyone have met this situation before?

    By the way I'm applying the unattended response file from a network share. Could that be the problem?

    Thanks.

The Unattend xml content:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value></Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <DisplayName>x</DisplayName>
                        <Name>x</Name>
                    </LocalAccount>
                </LocalAccounts>
                <DomainAccounts>
                    <DomainAccountList wcm:action="add">
                        <DomainAccount wcm:action="add">
                            <Name>tester</Name>
                        </DomainAccount>
                        <Domain>cilab.lumidigm.com</Domain>
                    </DomainAccountList>
                </DomainAccounts>
            </UserAccounts>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>0409:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback></UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <Credentials>
                    <Domain>x.com</Domain>
                    <Password>y</Password>
                    <Username>z</Username>
                </Credentials>
                <JoinDomain>c</JoinDomain>
                <MachineObjectOU>OU=c,DC=a,DC=b,DC=com</MachineObjectOU>
            </Identification>
        </component>
        <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
    </settings>
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserData>
                <ProductKey>
                    <WillShowUI>Never</WillShowUI>
                </ProductKey>
            </UserData>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

All replies (6)

Monday, February 11, 2019 6:58 AM âś…Answered

Hi,

Please refer to these links about how to create a answer file and add the answer file to the image: 

/en-us/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs

https://www.windowscentral.com/how-create-unattended-media-do-automated-installation-windows-10

Note: This is a third-party link and we do not have any guarantees on this website. This is just for your convenience. And Microsoft does not make any guarantees about the content.

Use DISM to apply unattend.xml: 

https://social.technet.microsoft.com/Forums/Azure/en-US/4bcb02b1-e0ae-451d-a3a1-98680f205db2/how-can-i-use-dism-applyunattend?forum=w8itproinstall

Best regards,

Yilia 

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Saturday, February 9, 2019 2:26 PM

Your answer file seems to be okay.

SkipMachineOOBE, SkipUserOOBE is deprecated since windows 10 1709.

https://social.technet.microsoft.com/Forums/en-US/0bebab24-a2d3-43bb-a55d-978ebd242dda/sysprep-unattendedxml-skipmachineoobe-skipuseroobe-deprecated?forum=win10itprosetup


Monday, February 11, 2019 5:40 PM

I have never used the WOW64 Setup OOBE. Other than that, everything looks ok. How is the image being installed? typically, the unattend.xml becomes autounattend.xml and is added to the OS install files.

Sean Liming - Book Author: Starter Guide Windows 10 IoT Enterprise - www.annabooks.com / www.seanliming.com


Monday, February 11, 2019 6:01 PM

I used Windows PE & dism to apply the image by using dism /apply-image, and then using dism /apply-unattend:c:\unattend.xml to apply the unattend.xml. However, this never gets working, so I was really confused.


Monday, February 11, 2019 7:21 PM

I recommend you to run the sysprep command with your anwer file when you are creating an image. Then you don't have to use an answer file when you are installing the image.

C:\Windows\System32\Sysprep>sysprep /generalize /oobe /shutdown /unattend:c:\answers.xml

Then capture an image using a WinPE enviroment.

dism /capture-image /capturedir:e:\ /imagefile:p:\windows10image.wim /name:"windows10image"

Applying the image.

dism /apply-image /imagefile:p:\windows10image.wim /index:1 /applydir:w:\


Monday, February 11, 2019 7:36 PM

Ah, I'm not wanting to use sysprep for the system. In the meantime, yilia zhao<abbr class="affil"></abbr>'s answer successfully solved my issue. Thank you for your advice.