Jump to content

Recommended Posts

Posted

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!

Posted

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

  • Thanks 1
Posted
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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...