NTP

How to setup NTP for Windows

Time in Windows - for Domains

In a Windows Domain, the default config is for the PDC to get time from an external time source, the other DCs to get time from the PDC and the domain members to get time for a DC in their Site.

So only the PDC should need to be modified.

The commands to configure the PDC to get time from the NTP Pool servers:

w32tm /config /manualpeerlist:"0.north-america.pool.ntp.org,0x09 1.north-america.pool.ntp.org,0x09 2.north-america.pool.ntp.org,0x09 3.north-america.pool.ntp.org,0x09" /syncfromflags:manual /reliable:yes /update
Net Stop "Windows Time"
Net Start "Windows Time"
w32tm /resync

Note on the manualpeerlist - after each server name we are adding ,0x09 because we want to combine the options 0x01 and 0x08 - you can look those values up here: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc773263(v=ws.10)#registry-path-25

If you want to use different servers for peers go to the NTP Pool Project website and select the servers that match your needs. (Don’t forget to put double quotes around your server list and spaces between server names!)

You can run the above commands on a non-domain joined computer and get the same result.

If you have a domain joined computer that needs to have the NTP settings reset - so it will check with a DC - use the following commands:

w32tm /config /syncfromflags:domhier /update
Net Stop w32tm
Net Start w32tm

One last thing about w32tm - it is not designed to provide highly accurate time, for time sensitive apps. If you have time sensitive apps you will need to find an alternate time server.

Reference:
This article is a good refernce on w32tm: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc773013(v=ws.10)
Configure w32tm on PDC: Microsoft Technet
Configure w32tm on computers: Microsoft Technet

comments powered by Disqus