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 and the method to modify the settings.

Applies to:   Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1
Original KB number:   2764405


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.

Sample XML answer file

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">

<!-- user list -->  
 <gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>  

<!-- GeoID -->
 <gs:GeoID Value="244"/>

 <gs:MUILanguage Value="cy-GB"/>
 <gs:MUIFallback Value="en-GB"/>

<!-- system locale -->
 <gs:SystemLocale Name="en-US"/>

<!-- input preferences -->
 <gs:InputLanguageID Action="add" ID="0409:00000409"/>
 <gs:InputLanguageID Action="remove" ID="0409:00000409"/>

<!-- user locale -->
 <gs:Locale Name="en-US" SetAsCurrent="true" ResetAllSettings="false">
 <gs:sTimeFormat>:HH:m:s tt:</gs:sTimeFormat>
 <gs:sLongDate>dddd, MMMM yyyy</gs:sLongDate>


  • 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 don't use Unicode to run and display menus and dialog boxes in the localized language. If a localized program doesn't 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 isn't possible to support simultaneously the localized programs that don't use Unicode for multiple languages.
  • InputPreferences - This setting specifies the input locale and keyboard layout combinations. 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: From KLID to GUID (aka KLIDoral stimulation, it feels GUID)
  • UserLocale - This setting controls the settings for sorting numbers, time, currency, and dates. To use .xml answer file to set language preferences:
  1. Create an xml file with the required settings and save it as a file (for example: c:\unattend.xml). The .xml file should at minimum include the following:

    <gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
     <gs:User UserID="Current"/>  
  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

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for deployment-related issues.