Halfmad Posted May 8, 2008 Posted May 8, 2008 Anyone know of a way to set the timezone on PCs using the login script? I can't use VB or group policies (I won't go into it - lets just say I want to but been told I can't). I've seen a few examples online but they're for US timezones - anyone actually got this working in the UK? Sadly I can't test this much, need it working pretty much perfectly first time!
FN-GM Posted May 8, 2008 Posted May 8, 2008 Try putting this in your current VBS script if you have one. SetLocale(2057) 2
SYNACK Posted May 9, 2008 Posted May 9, 2008 This might help as you can chuck it in a standard batch file that avoids VBS: How to change time zone from command line in windows? - dBforums Time zone change from command line (Win2k/WinXP): Control.exe TIMEDATE.CPL,,/Z (GMT-08:00) Pacific Time (US & Canada); Tijuana alternatively: RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT-08:00) Pacific Time (US & Canada); Tijuana where '(GMT-08:00) Pacific Time (US & Canada); Tijuana' is the timezone to be set. Input value behind /Z is from the Display value under the registry key 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones' You can use the Std value in those registry keys as well, this is equivalent with "(GMT-08:00) Pacific Time (US & Canada); Tijuana": Control.exe TIMEDATE.CPL,,/Z Pacific Standard Time 1
apeo Posted May 9, 2008 Posted May 9, 2008 Try putting this in your current VBS script if you have one. SetLocale(2057) Didnt know that one. Useful function, will add that to my list.
Halfmad Posted May 9, 2008 Author Posted May 9, 2008 cheers guys, got it all sorted for reference this is what I used: Control.exe TIMEDATE.CPL,,/Z (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now