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
Last revisionBoth sides next revision
os:windows:cli [2024-04-25 19:27] – add windows w32tm commands/queries Manuel Freios:windows:cli [2024-04-25 19:30] – add info about setting NTP servers 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 50: Line 50:
 Source: 192.0.2.1 Source: 192.0.2.1
 Poll Interval: 10 (1024s) Poll Interval: 10 (1024s)
 +</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> </code>
os/windows/cli.txt · Last modified: 2024-04-25 19:32 by Manuel Frei