Automate just OOBE setup pass of Windows 10 with Autounattend.xml

Page 1 of 2 12 LastLast

  1. Posts : 6
    Windows 10
       #1

    Automate just OOBE setup pass of Windows 10 with Autounattend.xml


    Dear Community,

    I am currently trying to find out if it is possible to automate just the OOBE setup pass of Windows 10 with an Autounattend.xml file.

    In this particular use case, the devices are delievered with a preinstalled Windows 10 Pro version 1803. The goal is to use the preinstalled OEM image. When startging the devices for the first time, they start with OOBE. We want to automate these steps. The idea was to create an answer file which just holds parameters for the oobeSystem pass and let the resulting Autounattend.xml file be consumed from a removable USB drive.

    Does somebody have experience with a similar use case? Will Windows 10 still search for an Autounattend.xml file just before entering the oobeSystem Pass? Or is an Autounattend .xml just usable when going trough all configurationen passes of Windows?

    The Microsoft documentation was no help for me regarding this particular question.

    Best regards,
    Manuel
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    Hello Manuel, welcome to Ten Forums.

    Is the pre-installed image made and customized by your organization, or is the original OEM image from device manufacturer?

    If custom image, then this tutorial might help you: Create media for automated unattended install of Windows 10 | Tutorials

    Kari
      My Computer


  3. Posts : 6
    Windows 10
    Thread Starter
       #3

    Hi Kari

    Thank you for your answer.

    The pre-installed image is from the device manufacturer.

    The initial idea was to use an implicit aswer file placed on a removable media as described in this Microsoft documentation .

    According to the documentation, an answer file called Autounattend.xml should be applied when placing it at the root of the removable drive (implicit search order 4 or 5). To test this, I alreay prepared an answer (see bottom of this post). Currently, it looks like the Autounattend.xml file is not consumed when entering the oobeSystem pass.

    I also wanted to check the setupact.log at "%windir%\panther\unattendGC" after going trought OOBE manually to check for errors. However, the directory does not exists.

    Therefore, I still ask myself if answer files are applicable only for oobeSystem pass when not preparing the image myself.

    Manuel


    Autounatttend.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="oobeSystem">
            <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>0807:00000807</InputLocale>
                <SystemLocale>de-CH</SystemLocale>
                <UILanguage>de-CH</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>de-CH</UserLocale>
            </component>
            <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>
                    <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>...</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <DisplayName>Admin</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Admin</Name>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>...</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <DisplayName>Kiosk</DisplayName>
                            <Group>Users</Group>
                            <Name>Kiosk</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:c:/..." xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #4

    maditu said:
    Currently, it looks like the Autounattend.xml file is not consumed when entering the oobeSystem pass.
    Autounattend.xml is only used for confiiguration passes WindowsPE and Offline Servicing. For all other configuration passes, including the OobeSystem, only pass in your answer file, the answer file name must be unattend.xml.

    Kari
      My Computer


  5. Posts : 6
    Windows 10
    Thread Starter
       #5

    Hi Kari,

    Thank you for the answer.

    According to your experience, should the oobeSystem pass automatically discover and consume an answer file called unattend.xml in the root directory of a removable drive?

    Manuel
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    maditu said:
    According to your experience, should the oobeSystem pass automatically discover and consume an answer file called unattend.xml in the root directory of a removable drive?
    Yes, it should work exactly as you intended, but if any issues when testing, come back and we'll think something else.

    Just to clarify this, autounattend.xml and unattend.xml have clear and different purposes. When installing Windows, PC boots to WinPE from install media and runs Windows Setup (deploys install.wim). An autounattend.xml file on root of install media is used at this phase, to configure disks and prepare for OOBE.

    The autounattend.xml file will be ignored after Setup is ready and machine reboots to OOBE. At this point, unattend.xml takes over, containing settings only for OOBE.

    Autounattend.xml is only for WinPE/ Windows Setup phase, which in your case is already done when your machines are booted up first time, booting directly to OOBE from pre-installed OEM image.

    Kari
      My Computer


  7. Posts : 6
    Windows 10
    Thread Starter
       #7

    Kari said:
    Yes, it should work exactly as you intended, but if any issues when testing, come back and we'll think something else.
    I did some testing placing the unattended.xml below on an usb drive. The device starts into manual OOBE as usual. There is no sign that the oobeSystem pass tries to consume the answer file from the usb drive . Do you have any idea how to troubleshoot this?

    unattend.xml
    Code:
    <?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>
                    <ProtectYourPC>3</ProtectYourPC>
                    <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>Placeholder</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Admin</Description>
                            <DisplayName>Admin</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Admin</Name>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>Placeholder==</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Kiosk</Description>
                            <DisplayName>Kiosk</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Kiosk</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </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>0807:00000807</InputLocale>
                <SystemLocale>de-CH</SystemLocale>
                <UILanguage>de-CH</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>de-CH</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:c:/..." xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
       #8

    I will do some testing. I will post back, but it might take several hours.

    Kari
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
       #9

    A few more questions, please answer:

    1.) About this you mentioned in original post:

    maditu said:
    In this particular use case, the devices are delievered with a preinstalled Windows 10 Pro version 1803.

    Are these devices shipped to end users directly by manufacturer / vendor, or do you have access to them before they are shipped out?

    2.) Are all devices going to be deployed to same language region, your answer file showing it to be Swiss German?

    3.) How many devices we are talking about?

    Kari
      My Computer


  10. Posts : 6
    Windows 10
    Thread Starter
       #10

    Kari said:
    Are these devices shipped to end users directly by manufacturer / vendor, or do you have access to them before they are shipped out?
    We do have access to them before they are shipped out.

    Kari said:
    2.) Are all devices going to be deployed to same language region, your answer file showing it to be Swiss German?
    Kari
    Yes, all devices will use Swiss German as their language region

    Kari said:
    3.) How many devices we are talking about?
    Kari
    We need to prepare roughly 300 devices.


    Manuel
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:44.
Find Us




Windows 10 Forums