NTP client configuration in Windows OS
From Notes_Wiki
Revision as of 08:04, 7 May 2023 by Saurabh (talk | contribs) (Created page with "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: <p...")
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