+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Setting timezone with login script in Technical; Anyone know of a way to set the timezone on PCs using the login script? I can't use VB or ...
  1. #1

    Join Date
    Mar 2007
    Location
    Central Scotland
    Posts
    831
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    16

    Setting timezone with login script

    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!

  2. IDG Tech News
  3. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,895
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,368 Times in 1,198 Posts
    Rep Power
    363
    Try putting this in your current VBS script if you have one.

    Code:
    SetLocale(2057)

  4. 2 Thanks to FN-GM:

    apeo (9th May 2008), Halfmad (9th May 2008)

  5. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,162
    Blog Entries
    9
    Thank Post
    749
    Thanked 2,455 Times in 2,087 Posts
    Rep Power
    688
    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

  6. Thanks to SYNACK from:

    Halfmad (9th May 2008)

  7. #4
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,611
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    39
    Quote Originally Posted by FN-Greatermanchester View Post
    Try putting this in your current VBS script if you have one.

    Code:
    SetLocale(2057)
    Didnt know that one. Useful function, will add that to my list.

  8. #5

    Join Date
    Mar 2007
    Location
    Central Scotland
    Posts
    831
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    16
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Set firefox proxy via login script
    By Jackd in forum Windows
    Replies: 2
    Last Post: 24th December 2009, 01:59 PM
  2. Printers disappearing after login script
    By gshaw in forum Windows
    Replies: 11
    Last Post: 10th June 2009, 06:47 PM
  3. Script visibility after login
    By Blind in forum Scripts
    Replies: 5
    Last Post: 21st April 2008, 11:03 AM
  4. Vista + VB login script
    By dave.81 in forum Windows Vista
    Replies: 5
    Last Post: 17th February 2008, 04:29 PM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 09:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •