[Solved] Help with AutoUnattended.xml

Discussion in 'Scripting' started by ceo54, Mar 16, 2018.

  1. ceo54

    ceo54 MDL Member

    Aug 13, 2015
    115
    9
    10
    Hello guys,

    I'm trying to create an answer file for my 8.1 Here's what I've managed to accomplish-

    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>4009:00004009</InputLocale>
                <SystemLocale>en-IN</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-IN</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">
                <TimeZone>India Standard Time</TimeZone>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Home</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Group>Administrators</Group>
                            <Name>Faudel</Name>
                            <Password>
                                <PlainText>true</PlainText>
                                <Value></Value>
                            </Password>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Security-SPP-UX" 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">
                <SkipAutoActivation>true</SkipAutoActivation>
            </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">
                <ComputerName>HP</ComputerName>
                <ProductKey>Y9NXP-XT8MV-PT9TG-97CT3-9D6TC</ProductKey>
            </component>
            <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>
                    <JoinWorkgroup>WORKGROUP</JoinWorkgroup>
                </Identification>
            </component>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" 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>4009:00004009</InputLocale>
                <SystemLocale>en-IN</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-IN</UserLocale>
                <SetupUILanguage>
                    <UILanguage>en-US</UILanguage>
                </SetupUILanguage>
            </component>
            <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">
                <Diagnostics>
                    <OptIn>false</OptIn>
                </Diagnostics>
                <DynamicUpdate>
                    <Enable>false</Enable>
                    <WillShowUI>OnError</WillShowUI>
                </DynamicUpdate>
                <ImageInstall>
                    <OSImage>
                        <WillShowUI>OnError</WillShowUI>
                        <InstallFrom>
                            <MetaData wcm:action="add">
                                <Key>/IMAGE/NAME</Key>
                                <Value>Windows 8.1</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <ProductKey>
                        <Key></Key>
                    </ProductKey>
                </UserData>
            </component>
        </settings>
    </unattend>
    
    Although it works perfectly fine but there are a few things I would like to attend to which this answer file skips and sets automagically. Firstly, Would like to have the ability to choose the accent color in OOBE secondly, would like to input the Compute'rs name and lastly, to input the admins name (first user)

    Can someone please point out the things I need to remove in order to accomplish this ?

    Thanks.
     
  2. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
    #2 mehdibleu, Mar 16, 2018
    Last edited: Mar 16, 2018
  3. ceo54

    ceo54 MDL Member

    Aug 13, 2015
    115
    9
    10
    Thanks for the link Mehdi. Can I PM you ?
     
  4. Ocygord

    Ocygord MDL Senior Member

    May 26, 2011
    277
    89
    10
    Use this: http://windowsafg.no-ip.org/win8.1x86_x64.html
    Make your changes and click generate. No need to use any Microsoft tool for this.
     
  5. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    212
    60
  6. ceo54

    ceo54 MDL Member

    Aug 13, 2015
    115
    9
    10
    Accomplished it with Windows System Image Manager. That site wouldn't allow me to choose specific components that I wanted. The only way left was to edit the XML manually, something I was refrained to do. Windows ADK is an excellent tool, highly configurable. Don't think it misses any aspect out and does it with absolute flexibility.