snippetbashTip
w32tm — Query and control the w32time time synchronization service. More information: <https://learn.microso
Viewed 0 times
thecommandw32timeandw32tmcliquerycontrol
windows
Problem
How to use the
w32tm command: Query and control the w32time time synchronization service. More information: <https://learn.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings>.Solution
w32tm — Query and control the w32time time synchronization service. More information: <https://learn.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings>.Show the current status of time synchronization:
w32tm /query /status /verboseShow a time offset graph against a time server:
w32tm /stripchart /computer:{{time_server}}Show an NTP reply from a time server:
w32tm /stripchart /packetinfo /samples:1 /computer:{{time_server}}Show the state of the currently used time servers:
w32tm /query /peersShow configuration of the w32time service (run in elevated console):
w32tm /query /configurationForce time resynchronization immediately (run in elevated console):
w32tm /resync /forceWrite w32time debug logs into a file (run in elevated console):
w32tm /debug /enable /file:{{path\to\debug.log}} /size:{{10000000}} /entries:{{0-300}}Code Snippets
Show the current status of time synchronization
w32tm /query /status /verboseShow a time offset graph against a time server
w32tm /stripchart /computer:{{time_server}}Show an NTP reply from a time server
w32tm /stripchart /packetinfo /samples:1 /computer:{{time_server}}Show the state of the currently used time servers
w32tm /query /peersShow configuration of the w32time service (run in elevated console)
w32tm /query /configurationContext
tldr-pages: windows/w32tm
Revisions (0)
No revisions yet.