Announcement

Collapse
No announcement yet.

Set Time Zone in Group Policy

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set Time Zone in Group Policy

    Is there a GP template that I can use to set workstation time zones and the checkbox for DST? We're using Windows 2003 AD and workstations are Win XP Pro, Win2K Pro, and Win98.

    Thanks.

  • #2
    Not as far as i am aware (and it seems that is the answer on google groups as well) but there is a solution

    Download the Windows Server 2003 reskit tools (from here: http://www.microsoft.com/downloads/d...displaylang=en)

    There is a tool called timezone.exe which can be used in a script (a startup script may work or in the logon script if your users have the right permissions).

    EDIT: Just found something else which may help on google groups:

    ..."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. "

    (Direct quote from google.groups: http://groups-beta.google.com/group/...93d6a07382f2f7)

    hope this helps
    Server 2000 MCP
    Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

    Comment


    • #3
      If we are talking about Israel, take a look at something I wrote here: http://guy.netguru.co.il/archives/8-...-for-2005.html

      If it's not for Israel, you can change the code (supplied) and adjust it for your timezone.

      There is nothing in the GPO that will do the trick. More than that - even if you try to go the custom ADM template route, I am not sure it is capable of changing REG_BINARY values (which are requited in this case).
      Guy Teverovsky
      "Smith & Wesson - the original point and click interface"

      Comment


      • #4
        The timedate.cpl command line is great.

        Is there a parameter that will set the checkbox for "Automatically adjust clock for daylight saving changes?"

        Carey

        Comment


        • #5
          Hmm not too sure... as i said i got this info from google groups. I have had a quick look on google without any look but i suggest you do the same and have a more detailed look. Good luck.
          Server 2000 MCP
          Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

          ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

          Comment


          • #6
            to set the checkbox "Automatically adjust clock for daylight saving changes?" , i've searched weeks to set that option.

            In the end, i wrote a script to do that. but unfortunally, the checkbox was set, but he didn't ajusted the time.

            after all that, we just wrote an instruction to set that checkbox, and paste it on the intranet.

            i never found it, to set that option unfortunally.

            oh, if you want to try it youreself; the settings can be found in the registry: HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInfo rmation
            Marcel
            Technical Consultant
            Netherlands
            http://www.phetios.com
            http://blog.nessus.nl

            MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
            "No matter how secure, there is always the human factor."

            "Enjoy life today, tomorrow may never come."
            "If you're going through hell, keep going. ~Winston Churchill"

            Comment


            • #7
              Thanks, Dumber.

              I did a bit more testing in the HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInfo rmation registry branch and found that when you uncheck the "Automatically adjust..." checkbox another key is added:

              DisableAutoDaylightTimeSet

              It is a DWORD value that is set to hexadecimal "00000001"

              If you check the "Automatically adjust..." checkbox again, the key disappears from the registry.

              I tried "importing" this key by itself with a setting of "00000000" and then I looked to see if the checkbox got rechecked and it did.

              Thought you might be able to use this information. As always, back up your registry before you play around with it.

              Carey

              Comment


              • #8
                Originally posted by carey
                I tried "importing" this key by itself with a setting of "00000000" and then I looked to see if the checkbox got rechecked and it did.
                Had you looked at the code of my app, you would see that this is exactly how it's done

                The logic goes like this (snipped from some email I wrote):

                HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
                The branch stores the time zones available on the computer. Each time zone contains the information about the GMT offset, the name of the time zone (i.e.: “Jerusalem Standard Time”) and the daylight savings information (the “TZI” REG_BINARY value).

                When the client switches time zone (the list of zones is created by enumerating the key above), the data is copied to:
                HKLM\System\CurrentControlSet\TimeZone Information
                And the values “DaylightStart” and “StandardStart” are populated by parsing the “TZI” value from the requested time zone.

                This basically means that if you are updating the registry directly, you need to update both registry branches. The trick with switching back and forward the time zone is the one that triggers copying data to
                HKLM\System\CurrentControlSet\TimeZone Information
                Which holds the actual current settings. [/b]
                Guy Teverovsky
                "Smith & Wesson - the original point and click interface"

                Comment

                Working...
                X