Windows 8 and 8.1 Forums


Sysprep with Unattend.xml, not setting correct language

  1. #1


    Posts : 2
    Windows 8.1

    Sysprep with Unattend.xml, not setting correct language


    Hi Everyone,

    We are trying to create a Windows 8.1 image and have been having a little trouble with the language settings after running sysprep.exe with an unattend.xml file. Everything is working how we want it to work except the language settings after oobe has run etc.

    The sysprep command we run is: sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml

    Before running sysprep we are setting the language settings to have English (Australia) as the preferred langauge with the Date, time and number formatting.

    Click image for larger version

    After sysprep / oobe etc has been run it is changing it to English (US) as the preferred language with the Date, time and number formatting.

    Click image for larger version

    We have tried numerous different things with our Unattend.xml file without success. The following code is the latest file we are using, would very much appreciate any help/advice to solve this issue!

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" 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">
                <SkipRearm>0</SkipRearm>
            </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">
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <RegisteredOwner>NHS</RegisteredOwner>
                <RegisteredOrganization>NHS</RegisteredOrganization>
            </component>
        </settings>
        <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>en-AU</InputLocale>
                <SystemLocale>en-AU</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-AU</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>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                </OOBE>
                <RegisteredOrganization>NHS</RegisteredOrganization>
                <RegisteredOwner>NHS</RegisteredOwner>
                <TimeZone>Cen. Australia Standard Time</TimeZone>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>tempaccount</Description>
                            <DisplayName>tempaccount</DisplayName>
                            <Group>Administrators</Group>
                            <Name>tempaccount</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            </component>
        </settings>
        <settings pass="specialize">
            <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">
                <CopyProfile>true</CopyProfile>
                <ComputerName>*</ComputerName>
            </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>en-AU</InputLocale>
                <SystemLocale>en-AU</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-AU</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:x:/windows%208.1%20dvd/sources/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

      My System SpecsSystem Spec

  2. #2


    Posts : 2
    Windows 8.1


    I think my problem is solved!

    It seems that it is only when I login with the local user account that I used to setup the image (the one that gets copied to default user) that has the incorrect language settings. If I login with a new user account it has the correct settings.

    I'm wondering if this has something to do with running 'Sysprep.exe' using that user account and whether that changes the language settings for that account? If anyone could explain why this might be I would be very interested!
      My System SpecsSystem Spec

  3. #3


    Posts : 6
    Windows Client


    Are you using Administrator via Audit Mode to configure the image or is this a normal user account?

    To use Audit Mode to prepare your image press Shift+Ctrl+F3 when you are prompted to create a user to bypass user creation, log in as Administrator in Audit Mode, make your changes, then Sysprep /Generalize /OOBE with your answer file and CopyProfile.

    Brandon
    Windows Outreach Team- IT Pro
    Windows for IT Pros on TechNet
      My System SpecsSystem Spec

Sysprep with Unattend.xml, not setting correct language
Related Threads
what a terrible title, sorry for confusion but needed help in regards to those topics. issue is, there are a lot of program that comes with multiple languages we can choose during an installation, and there are software thats just in english no matter what, and then finally the software that...
I've got a Lenovo all-in-one 64 bit PC. When I click on Change PC Settings in the Settings charm the 'Wireless' option is missing. It appears exactly as expected on my laptop - also a 64bit windows 8 machine. Anyone any idea what's going on? (My bluetooth mouse and keyboard are working as is...
It seems to me that the default language input method changes with apps being loaded, supposed I set my default input language to PT and then use MS Word in Chinese, when I close my Win 8.1, the next time I turn on my computer, the default will change to CN instead of PT. Anyone knows how to make...
My parents bought a PC last year running W8. I set up there talktalk E mail accounts in the W8 Native E mail client from the Mail tile at the start screen without any problem. All worked fine until recently when in order to download an app they had to register an Outlook E Mail address. Not sure...
I bought the sony laptop with single language pack. The OS language is in spanish. I need to change the language to english. How to change the OS language in single language windows 8.
Hi, I'm using DISM to create a custom image, we use a vlk licence key to install but this isn't being accepted on the answer file. Its definatly a valid key and being entered correctly). I'm just getting the error 'The unattend answer file contains an invalid product key' Is there anything i can do...
Hi ! I just installed windows 8 on a single partition, and when i installed i did click on spanish. I trying to install english language but i get an error. Any help
Eight Forums Android App Eight Forums IOS App Follow us on Facebook