Step 1:
Net time /setsntp:
W32tm /config /syncfromflags:manual /manualpeerlist:
W32tm /config /reliable:yes
W32tm /config /update
W32tm /resync
Pause
Exit
Step 2:
[HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet\Services\W32Time\Config]
“AnnounceFlags”=dword:00000005
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
“Type”=”NTP”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]
“Enabled”=dword:00000001
“AnnounceFlags”=dword:00000005
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
“Type”=”NTP”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]
“Enabled”=dword:00000001
Step 3:
Net stop w32time
Net start w32time
Net time
Pause
Exit
Command in login script:
Net Time \\<LocalTimeServer’sName /Set /Yes