General discussion

Locked

Automatically change regional settings

By williamoshea ·
Dear Colleagues,
Any idea how to change regional and language settings using a script??

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by ReWrite In reply to Automatically change regi ...

Is there a need to have a script? Changing these settings can be accomplished through the Input Locale switcher. Check here for instructions:

http://www.library.georgetown.edu/dept/gelardin/guides/multilanguage/multilanguage.htm

Cheers.

RW

Collapse -

by williamoshea In reply to

Poster rated this answer.

Collapse -

by williamoshea In reply to Automatically change regi ...

The thing is my users do not have access to control panel icons (i.e they are disabled by design), but I would want to incorporate a logon script that checks to see if the (date format, currency, keyboard settings etc) is set to UK, and if not, change them.
plaese help, help!!!

Collapse -

by ReWrite In reply to Automatically change regi ...

Since the users do not have access to the control panel they cannot be admins. Due to this, a script will not work because they will not have access to make registry changes (on a stand-alone pc).

If they are logging on to a network you should be able to accomplish this through group policies. If they are not logging on to a network then they cannot change the locale anyway so you should be able to set it and forget it.

A script won't work because the user will have to be logged on to apply the proper profile. You could write a custom app after the login script on a network to check the current profile and make the appropriate changes but it would need to run under an administrators account.

Cheers.

RW

Collapse -

Try to use this one

by charicool07 In reply to Automatically change regi ...

'======================Set Languages============================================

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Keyboard Layout\Preload"
objRegistry.EnumValues HKEY_CURRENT_USER, strKeyPath, arrValueNames
i = 0
For i=UBound(arrValueNames) + 1 To 1 step -1
strKeyPath = "Keyboard Layout\Preload"
strValueName = i
objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
wshShell.run("Setlocale.exe" &" "& strValue)
Next

You must download the setlocale.exe application and put it on the network share with the read and execute permissions for your users.

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums