How to resolve clock drifts on Windows Servers / DCs. It is vital that these systems stay in sync or it can cause problems with SSL, email, services, Active Directory, etc.
If the NTPServer line reports local, proceed with the Repairing the Windows Time Service section.
Repairing the Windows Time Service[edit]
Usually you can run:
w32tm /register
Reboot
Otherwise Do the following:
pushd %SystemRoot%\system32
.\net stop w32time
.\w32tm /unregister
.\w32tm /register
.\sc config w32time type= own
.\net start w32time
.\w32tm /config /update /manualpeerlist:”SERVER-DC”,0x8 /syncfromflags:MANUAL /reliable:yes
Replace SERVER-DC with the DC name.
.\w32tm /resync
popd
more details here
Other commands[edit]
time /t
Outputs the current system time
w32tm /query /peers
w32tm /query /status
w32tm /query /configuration
w32tm /query /source
usually after the config line do this
w32tm /config /update
w32tm /configure /reliable:yes /update
Reset to use AD: w32tm /config /syncfromflags:domhier /update
w32tm /dumpreg /subkey:parameters
w32tm /monitor /computers:pool.ntp.org