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:User UserID="Current"/>
    <!-- User Locale-->
        <gs:Locale Name="es-US" SetAsCurrent="true"/>

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]

Comments (4)

  1. caio says:


    do you know if there’s something similar for set the reginal settings via command line in Win XP?

  2. Upgrade 🙂  Win7’s great 🙂

    Michael mentions it I haven’t really played with it though.

  3. BZanten says:

    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 :…/289125

  4. Brent says:

    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?

Skip to main content