+ 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
    829
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    19

    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. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,312
    Thank Post
    901
    Thanked 1,798 Times in 1,549 Posts
    Blog Entries
    12
    Rep Power
    466
    Try putting this in your current VBS script if you have one.

    Code:
    SetLocale(2057)

  3. 2 Thanks to FN-GM:

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

  4. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,268
    Thank Post
    884
    Thanked 2,747 Times in 2,321 Posts
    Blog Entries
    11
    Rep Power
    785
    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

  5. Thanks to SYNACK from:

    Halfmad (9th May 2008)

  6. #4
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    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.

  7. #5

    Join Date
    Mar 2007
    Location
    Central Scotland
    Posts
    829
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    19
    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, 02:59 PM
  2. Printers disappearing after login script
    By gshaw in forum Windows
    Replies: 11
    Last Post: 10th June 2009, 07:47 PM
  3. Script visibility after login
    By Blind in forum Scripts
    Replies: 5
    Last Post: 21st April 2008, 12:03 PM
  4. Vista + VB login script
    By dave.81 in forum Windows Vista
    Replies: 5
    Last Post: 17th February 2008, 05:29 PM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 10: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
  •