Configure NTP in Windows Server 2008 or later

By | October 7, 2013

To check the NTP settings of a Windows computer, you can run the following commands:

w32tm /query /configuration
w32tm /query /status
time /T

The first command will give the configuration you have setup.  The second will give you information such as stratum, leap indicator, precision, last sync, poll intervals, and other useful NTP stats.  The third one will output the system time.  Only the first command is necessary normally.  If for some reason you get an error, make sure the Windows Time service has been started and set to automatic start-up.  This is required for NTP to work.

If you need to configure a Windows Server to use our NTP servers, you can do so using the following commands:

c:\windows\system32\w32tm /config /manualpeerlist:"Server1IP Server2IP",0x8 /syncfromflags:MANUAL
net stop w32time
net start w32time

Where Server1IP and Server2IP are the IP addresses of the servers.  If you need to add different servers other than our own NTP servers you can modify the command above to use different IPs or Host names:

c:\windows\system32\w32tm /config /manualpeerlist:"server1 server2",0x8 /syncfromflags:MANUAL

Where server1 and server2 are the IPs or host names of the new NTP servers.  Be sure to stop and start the w32time service after doing so or reboot.