Welcome to MSDN Blogs Sign in | Join | Help

Configuring International Settings from the command line

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 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 Aug 2007: see http://www.microsoft.com/globaldev/vista/vista_tools/vista_command_line_international_configuration.mspx ]

Published Thursday, April 12, 2007 12:44 PM by shawnste

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker