Freigeben über


Configuring Regional and Language Options International Settings with command line automation

Administrators like to set international settings from the command line.  (Ie: Regional and Language Options, aka intl.cpl options).  It is possible to do this automatically in Windows Vista through an xml configuration file.  A document is being created for MSDN, but I thought I'd provide a preview of how this can work.

Basically you just create an xml file with content like this:

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<!--User List-->
<gs:UserList>
<gs:User UserID="Current"/>
</gs:UserList>
<!-- User Locale-->
<gs:UserLocale>
<gs:Locale Name="es-US" SetAsCurrent="true"/>
</gs:UserLocale>
</gs:GlobalizationServices>

And then send it to intl.cpl by using the command:

control intl.cpl,, /f:"intlsettings.xml"

Where "intlsettings.xml" is the full path to your xml file.

This example changes the current user locale to "Spanish (United States)".  The full documention will show how to change other Regional and Language options settings as well.

I'll post again when the documentation's available on MSDN.

[1 Jan 2011: see https://msdn.microsoft.com/en-us/goglobal/bb964650]

Comments

  • Anonymous
    February 09, 2010
    The comment has been removed

  • Anonymous
    March 30, 2010
    Upgrade :)  Win7's great :) Michael mentions it http://blogs.msdn.com/michkap/archive/2006/05/20/602745.aspx I haven't really played with it though.

  • Anonymous
    October 07, 2010
    For Windows XP use: rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:regopts.txt" with an regopts.txt that is derived from an unattended.txt setup file. see :  support.microsoft.com/.../289125

  • Anonymous
    February 06, 2017
    Do you know the code that i would use in an XML file to add the Microsoft IME input language for Japanese or Korean to my regional settings?