Networknet archive Blog

Windows Time: check and configure NTP synchronization

Originally published 2 comments

When I checked the time difference between my local system and the time.windows.com NTP server, I found an 11-second difference.

Open a command prompt and run the following command to check your local time service:

Code1 line
1
w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly

image

I trust Microsoft to maintain its time infrastructure, but I still performed two additional checks against nist.gov servers:

Code2 lines
1
2
w32tm /stripchart /computer:time.nist.gov /samples:5 /dataonly
w32tm /stripchart /computer:time-b.nist.gov /samples:5 /dataonly

Configure the Windows Time service

I am now manually configuring the Windows Time service to synchronize the local time with Microsoft's NTP peer:

Code1 line
1
w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update

image

Three new events are generated in Windows Vista:

The time service is now synchronizing the system time with the time source time.windows.com (ntp.m|0x0|0.0.0.0:123->207.46.232.182:123).

The system time has changed to 3/7/2008 9:51:02 PM from 3/7/2008 9:51:13 PM. (My 11s ;-))

The system time has changed to 3/7/2008 9:51:02 PM from 3/7/2008 9:51:02 PM.

image

A final stripchart check shows an offset of 00.xxxx. Consider these steps for your Active Directory PDC domain controller and the time source for your domain. For more information, see this article.

2 comments

Comments from the original WordPress site, kept read-only.

  1. AMiRU

    Are you able to run w32tm /resync

    I am having a hard time figuring out why I am not able to resync to my NTP server