You are currently offline, waiting for your internet to reconnect

How to Automate Regional and Language settings in Windows Vista, Windows Server 2008, Windows 7 and in Windows Server 2008 R2

This article describes the Regional and Language Settings options in Windows Vista, in Windows Server 2008, in Windows 7 and in Windows Server 2008 R2. Also, in this article you can find the method to modify the settings using an xml based answer file.

For more information on Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

325856  How to specify regional and language settings for an unattended installation of Windows MultiLanguage Version in Windows Server 2003

Sample XML answer file

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"> <!-- user list -->     <gs:UserList>        <gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>     </gs:UserList>     <!-- GeoID -->    <gs:LocationPreferences>         <gs:GeoID Value="244"/>    </gs:LocationPreferences>     <gs:MUILanguagePreferences>        <gs:MUILanguage Value="cy-GB"/>        <gs:MUIFallback Value="en-GB"/>    </gs:MUILanguagePreferences>     <!-- system locale -->    <gs:SystemLocale Name="en-US"/>     <!-- input preferences -->    <gs:InputPreferences>        <gs:InputLanguageID Action="add" ID="0409:00000409"/>        <gs:InputLanguageID Action="remove" ID="0409:00000409"/>      </gs:InputPreferences>     <!-- user locale -->    <gs:UserLocale>        <gs:Locale Name="en-US" SetAsCurrent="true" ResetAllSettings="false">            <gs:Win32>                <gs:iCalendarType>1</gs:iCalendarType>         <gs:iCurrency>3</gs:iCurrency>   <gs:iCurrDigits>1</gs:iCurrDigits>   <gs:sList>...</gs:sList>                <gs:sDecimal>;;</gs:sDecimal>                <gs:sThousand>::</gs:sThousand>                <gs:sGrouping>1</gs:sGrouping>                <gs:iDigits>2</gs:iDigits>                <gs:iNegNumber>2</gs:iNegNumber>                <gs:sNegativeSign>(</gs:sNegativeSign>                <gs:sPositiveSign>=</gs:sPositiveSign>                <gs:sCurrency>kr</gs:sCurrency>                <gs:sMonDecimalSep>,,</gs:sMonDecimalSep>                <gs:sMonThousandSep>...</gs:sMonThousandSep>                <gs:sMonGrouping>3</gs:sMonGrouping>                 <gs:iNegCurr>3</gs:iNegCurr>                <gs:iLZero>0</gs:iLZero>                <gs:sTimeFormat>:HH:m:s tt:</gs:sTimeFormat>                <gs:s1159>a.m.</gs:s1159>                <gs:s2359>p.m.</gs:s2359>                <gs:sShortDate>d/M/yy</gs:sShortDate>                <gs:sLongDate>dddd, MMMM yyyy</gs:sLongDate>                <gs:iFirstDayOfWeek>6</gs:iFirstDayOfWeek>                <gs:iFirstWeekOfYear>2</gs:iFirstWeekOfYear>                <gs:sNativeDigits>0246813579</gs:sNativeDigits>                <gs:iDigitSubstitution>1</gs:iDigitSubstitution>                <gs:iMeasure>0</gs:iMeasure>                <gs:iTwoDigitYearMax>2021</gs:iTwoDigitYearMax>            </gs:Win32>        </gs:Locale>    </gs:UserLocale> </gs:GlobalizationServices>

  • UserList - This setting specifies the user account for which we need to do the change settings. CopySettingsToDefaultUserAcct and CopySettingsToSystemAcct are the parameters that can be used to copy the settings to all users and also the system account(logonUI screen)
  • GeoID/Location Preferences - Updates the current location field under the location tab. Some software, including Windows may provide additional information passed on this, such as weather
  • MUILanguagePreference - Supports setting the display language and, if appropriate, the display language fallbacks for the system. Set by using a child element <gs:MUILanguage> with an attribute containing the language string.To set the fallback language of the language set using <gs:MUILanguage>, use the element <gs:MUIFallback>. Using this XML entity does NOT install the display languages. It should only be used for selecting display languages after they have been installed.
  • SystemLocale - This setting enables programs that do not use Unicode to run and display menus and dialog boxes in the localized language. If a localized program does not display correctly on the computer, setting the system locale to match the language of the localized program may resolve the problem. However, this setting is system-wide, so it is not possible to support simultaneously the localized programs that do not use Unicode for multiple languages.
  • InputPreferences - This setting specifies the input locale and keyboard layout combinations. Please Note: Unlike in 2003/XP, for some complex languages, the usage of KLIDs to identify keyboard layouts have been replaced by GUIDs. The following link gives a table for the replacement:
  • UserLocale - This setting controls the settings for sorting numbers, time, currency, and dates.
To a use .xml answer file to set language preferences:

  1. Create an xml file with the required settings and save it as a file (eg: c:\unattend.xml). The .xml file should at minimum include the following:
    <gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">     <gs:UserList>        <gs:User UserID="Current"/>     </gs:UserList> </gs:GlobalizationServices>
  2. Create a batch file by using the following command line to apply the answer file settings:
    control.exe intl.cpl,,/f:"c:\Unattend.xml"
Guide to Windows Vista Multilingual User Interface

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2764405 - Last Review: 10/03/2012 09:56:00 - Revision: 1.0

Windows Vista Home Basic, Windows Vista Home Basic 64-bit Edition, Windows Vista Home Premium, Windows Vista Home Premium 64-bit Edition, Windows Vista Business, Windows Vista Business 64-bit Edition, Windows Vista Enterprise, Windows Vista Enterprise 64-bit Edition, Windows Vista Ultimate, Windows Vista Ultimate 64-bit Edition, Windows Vista Service Pack 2, Windows Server 2008 Standard, Windows Server 2008 Standard without Hyper-V, Windows Server 2008 Enterprise, Windows Server 2008 Enterprise without Hyper-V, Windows Server 2008 Datacenter, Windows Server 2008 Datacenter without Hyper-V, Windows Server 2008 for Itanium-Based Systems, Windows Server 2008 Service Pack 2, Windows Server 2008 R2 Standard, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Enterprise, Windows 7 Ultimate, Windows 7 Service Pack 1, Windows Server 2008 R2 Standard without Hyper-V, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Enterprise without Hyper-V, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Datacenter without Hyper-V, Windows Server 2008 R2 for Itanium-Based Systems, Windows Server 2008 R2 Service Pack 1

  • KB2764405