NTP client configuration in Windows OS

From Notes_Wiki

Home > Windows > Windows Desktop Tools or Utilities > NTP client configuration in Windows OS

While in Windows via GUI we can only enable / disable NTP, various NTP related configuration can be done / viewed via command-line. See https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings?source=recommendations

Check existing NTP configuration

We can check NTP configuration via:

W32tm /query /computer:<hostname-of-computer> /configuration


Configure machine to use specific NTP server

We can specify NTP server to use via:

w32tm /config /manualpeerlist:"<ntp1-ip-or-fqdn> <ntp2-ip-or-fqdn>" /syncfromflags:manual /update


Check current configured NTP server

If we want to check only configured NTP server we can use:

reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

to get the same information via registry


Configure machine to automatically sync time from AD server

To make machine sync time automatically via AD use:

w32tm /config /syncfromflags:domhier /update
net stop w32time
net start w32time


Home > Windows > Windows Desktop Tools or Utilities > NTP client configuration in Windows OS