views:

13221

answers:

4

How can I change the system-default regional settings in windows XP for use by services (run by the system user)?

Regional and Language Options in the control panel modify the settings for the logged-in user. However, services don't use the user's settings - they use the system settings. I know that they can be found in the registry here:

HKEY_USERS\.DEFAULT\Control Panel\International

My question is: What mechanism is there for changing the system-language/date/etc from en-us to en-gb?

A: 

IM not sure if this will help

First type in gpedit.msc from the run command and a dialog box should now open. Navigate to User Configuration > Administrative Templates > Control Panel > Regional Settings.

This shows the group polcies for the PC/s, maybe you can just set it so en_gb is the only option!!

Group Policy is not my strong point, but do a google search and go from there, I would imagine that you should be able to set up who and what can do what from here.

HTH

Paul M
A: 

Not so easy.

Fast way: define a specific user to run the service, logon with that user, set the regional settings, run the service.

massimogentilini
+1  A: 

Could you not use regedt32 on a machine and make all the correct settings...then export the International folder by right clicking and export the reg file.

you can manually edit the exported reg file if you dont need all the settings

then you can run that reg file on a new machine to import the registry keys etc?

rodent43
+2  A: 

There is no documented way to do that.

A quick look in the Regional Settings Applet dll shows that it calls a totally undocumented API: NlsUpdateSystemLocale().

Why do you want to do that? Do you want to control the locale of a service of yours? Then let your service run under a user account you control.

Serge - appTranslator