User Tools

Site Tools


os:windows:cli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
os:windows:cli [2024-04-25 19:27] – add windows w32tm commands/queries Manuel Freios:windows:cli [2024-04-25 19:32] (current) – [Set NTP Servers] add link to Windows Time service tools and settings Manuel Frei
Line 9: Line 9:
 </code> </code>
  
-==== Check Remote NTP Server ====+===== Check Remote NTP Server =====
  
 The following command will contact the NTP server 192.0.2.1 and show you 5 samples by printing time and offset. The following command will contact the NTP server 192.0.2.1 and show you 5 samples by printing time and offset.
Line 29: Line 29:
 </code> </code>
  
-==== Show Time Source ====+===== Show Time Source =====
  
 Show the current time source. Show the current time source.
Line 51: Line 51:
 Poll Interval: 10 (1024s) Poll Interval: 10 (1024s)
 </code> </code>
 +
 +===== Set NTP Servers =====
 +
 +Set your NTP servers manually, separated by space if more than one.
 +<code>
 +w32tm /config /manualpeerlist:"192.0.2.1 192.0.2.2" /syncfromflags:manual /update
 +</code>
 +
 +More information: [[https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings?tabs=config|learn.microsoft.com: Windows Time service tools and settings]]
 +
os/windows/cli.1714066059.txt.gz · Last modified: 2024-04-25 19:27 by Manuel Frei