Server

Methods to change Windows System Time

Method 1: Temporarily change the time zone for the computer

If you have permission to modify the computer’s system clock, follow these steps:

1. Click Start, click Run, type TimeDate.cpl and then click OK.

2. Click the Time Zone tab.

3. Note the current time zone, and then select a different time zone from the list of time zones.

4. Click Apply.

5. Select the original time zone from the list of time zones and then click OK.

Method 2: Use a command-line statement to refresh time zone information on computers in a single time zone

If the user does not have access to the system clock, the following method can be used to push the time zone update to multiple clients:
Note This method requires that the command that is described below be run under the security context of a user in the local Administrators group. Additionally, this method assumes that you know the name of the time zone in which the client computer resides. If you have clients in multiple time zones, use method 3.

· Add the following statement to a logon script or batch file:

control.exe timedate.cpl,,/Z Time_Zone_Name

For example, if the client computer uses Eastern Standard Time, you would use the following:

control.exe timedate.cpl,,/Z Eastern Standard Time

Method 3: Use a VBScript to refresh time zone information on computers in multiple time zones

If the user does not have access to the system clock, the following method can be used to push the time zone update to multiple clients:

1. Click Start, click Run, type notepad, and then click OK.

2. Copy the following code, and then paste it into the Notepad document:

3. Set objSh = CreateObject("WScript.Shell")

4.

5. ‘Get the StandardName key of the current time zone

6. szStandardName = objSh.RegRead("HKLMSYSTEMCurrentControlSetControlTimeZoneInformationStandardName")

7.

8. ‘Enumerate the subkeys in the time zone database

9. const HKEY_LOCAL_MACHINE = &H80000002

10. Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\.rootdefault:StdRegProv")

11. szTzsKeyPath = "SOFTWAREMicrosoftWindows NTCurrentVersionTime Zones"

12. objReg.EnumKey HKEY_LOCAL_MACHINE, szTzsKeyPath, arrTzSubKeys

13.

14. ‘Step through the time zones to find the matching Standard Name

15. szTzKey = "<Unknown>"

16. For Each subkey In arrTzSubKeys

17. If (objSh.RegRead("HKLM" & szTzsKeyPath & "" & subkey & "Std") = szStandardName) Then

18. ‘Found matching StandardName, now store this time zone key name

19. szTzKey = subkey

20. End If

21. Next

22.

23. If szTzKey = "<Unknown>" Then

24. ‘Write entry to the Application event log stating that the update has failed to execute

25. objSh.LogEvent 1, "DST 2007 Registry Update and Refresh failed to execute on this computer. Time zones failed to enumerate properly or matching time zone not found."

26. Wscript.Quit 0

27. End If

28.

29. Dim process, processid, result, strUpdateCommand

30. Set process = GetObject("winmgmts:{impersonationLevel=impersonate}!\.rootcimv2:Win32_process")

31.

32. ‘Add time change privilege to the process object

33. process.Security_.Privileges.AddAsString "SeSystemTimePrivilege",True

34. strUpdateCommand = "control.exe timedate.cpl,,/Z" & szTzKey

35.

36. ‘Launch control.exe to refresh time zone information using the TZ key name obtained above

37. result = process.create(strUpdateCommand,Null,Null,processid)

38. If result <> 0 Then

39. objSh.LogEvent 1, "DST 2007 Registry Update and Refresh failed to execute on this computer. Unable to refresh the Timezone database."

40. Wscript.Quit 0

41. End If

42.

43. ‘Get current display name of refreshed time zone

44. szCurrDispName = objSh.RegRead("HKLM" & szTzsKeyPath & "" & szTzKey & "Display")

45.

46. ‘Write entry to the Application event log stating that the update has executed

47. objSh.LogEvent 4, "DST 2007 Registry Update and Refresh has been executed on this computer." & chr(13) & chr(10) & chr(13) & chr(10) & "Current time zone is: " & szCurrDispName & "."

48. On the File menu, click Save As.

49. Select a destination, and then type refreshTZinfo.vbs in the File name box.

50. In the Save as type box, click All Files, and then click Save.

For more information and for an exact example of how to deploy this VBScript, click the following article number to view the article in the Microsoft Knowledge Base:

914387

(http://support.microsoft.com/kb/914387/ )

How to configure daylight saving time for Microsoft Windows operating systems

Verify that the change was made

To verify that the workaround method worked correctly, follow these steps:

1. Click Start, click Run, type regedit, and then click OK.

2. Locate and then click the following subkey in the registry:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation

3. Note the StandardName value.

4. Note the StandardStart value.

5. Note the DaylightStart value.

6. Exit Registry Editor.

7. Using the StandardName value as the time zone name, compare the values for StandardStart and DaylightStart to the values that are listed in the following table. This is representative of the correct StandardStart and DaylightStart values from the latest Windows Cumulative Time Zone Update.

Collapse this tableExpand this table

Time zone name

StandardStart

DaylightStart

Afghanistan Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Alaskan Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

Arab Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Arabian Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Arabic Standard Time

00000A00010004000000000000000000

00000400010003000000000000000000

Armenian Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Atlantic Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

AUS Central Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

AUS Eastern Standard Time

00000300050003000000000000000000

00000A00050002000000000000000000

Azerbaijan Standard Time

00000A00050005000000000000000000

00000300050004000000000000000000

Azores Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Canada Central Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Cape Verde Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Caucasus Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Cen. Australia Standard Time

00000300050003000000000000000000

00000A00050002000000000000000000

Central America Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Central Asia Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Central Brazilian Standard Time

00000200050000000000000000000000

00000B00010000000000000000000000

Central Europe Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Central European Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Central Pacific Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Central Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

Central Standard Time (Mexico)

00000A00050002000000000000000000

00000400010002000000000000000000

China Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Dateline Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

E. Africa Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

E. Australia Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

E. Europe Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

E. South America Standard Time

00000200050000000000000000000000

00000B00010000000000000000000000

Eastern Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

Egypt Standard Time

00000900050017003B003B0000000400

00000400050017003B003B0000000400

Ekaterinburg Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Fiji Standard Time

000000000000000000000000
00000000

00000000000000000000000000000000

FLE Standard Time

00000A00050004000000000000000000

00000300050003000000000000000000

Georgian Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

GMT Standard Time

00000A00050002000000000000000000

00000300050001000000000000000000

Greenland Standard Time

00000A00050002000000000000000000

00000400010002000000000000000000

Greenwich Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

GTB Standard Time

00000A00050004000000000000000000

00000300050003000000000000000000

Hawaiian Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

India Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Iran Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Jerusalem Standard Time

00000900030002000000000000000000

00000300050002000000000000000500

Jordan Standard Time

00000A00050001000000000000000500

00000300050017003B003B00E7030400

Korea Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Malay Peninsula Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Mexico Standard Time

00000A00050002000000000000000000

00000400010002000000000000000000

Mexico Standard Time 2

00000A00050002000000000000000000

00000400010002000000000000000000

Mid-Atlantic Standard Time

00000900050002000000000000000000

00000300050002000000000000000000

Middle East Standard Time

00000A00050017003B003B00E7030600

00000300050000000000000000000000

Montevideo Standard Time

00000300020002000000000000000000

00000A00010002000000000000000000

Mountain Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

Mountain Standard Time (Mexico)

00000A00050002000000000000000000

00000400010002000000000000000000

Myanmar Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

N. Central Asia Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Namibia Standard Time

00000900010002000000000000000000

00000400010002000000000000000000

Nepal Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

New Zealand Standard Time

00000400010003000000000000000000

00000900050002000000000000000000

Newfoundland Standard Time

00000B00010000000100000000000000

00000300020000000100000000000000

North Asia East Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

North Asia Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Pacific SA Standard Time

00000300020017003B003B00E7030600

00000A00020017003B003B00E7030600

Pacific Standard Time

00000B00010002000000000000000000

00000300020002000000000000000000

Pacific Standard Time (Mexico)

00000A00050002000000000000000000

00000400010002000000000000000000

Romance Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

Russian Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

SA Eastern Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

SA Pacific Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

SA Western Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Samoa Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

SE Asia Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

South Africa Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Sri Lanka Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Taipei Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Tasmania Standard Time

00000300050003000000000000000000

00000A00010002000000000000000000

Tokyo Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Tonga Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

US Eastern Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

US Mountain Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Vladivostok Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

W. Australia Standard Time

00000300050003000000000000000000

00000A00050002000000000000000000

W. Central Africa Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

W. Europe Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

West Asia Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

West Pacific Standard Time

00000000000000000000000000000000

00000000000000000000000000000000

Yakutsk Standard Time

00000A00050003000000000000000000

00000300050002000000000000000000

For more information about the latest Windows Cumulative Time Zone Update, click the following article number to view the article in the Microsoft Knowledge Base:

914387

(http://support.microsoft.com/kb/914387/ )

How to configure daylight saving time for Microsoft Windows operating systems

 

References:

<

p>Source: The daylight saving time period ends early after applying a Windows cumulative time zone update

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.