W32Time
Cheat sheet · https://pcornel.dk/topic.php?topic=3365
Answer
W32Time is the Windows Time service that implements NTP. Manage it with the w32tm command, for example w32tm /resync, and its configuration in the registry under W32Time\Parameters.
Remember
- W32Time implements NTP in Windows.
- Manage it with w32tm.
- Its settings live in the registry.
First checks
w32tm /query /status— source, stratum, last syncw32tm /query /source— current time sourcew32tm /query /configuration— configurationw32tm /stripchart /computer:<server> /samples:5 /dataonly— offset to a serverw32tm /resync— force resync
Commands
w32tm /query /peers- Lists the time peers the Windows Time service uses and their state.
w32tm /query /status- Shows the Windows Time service state: time source, stratum, last sync and offset.
w32tm /resync- Tells the Windows Time service to sync now and correct the clock.
Verify in this order
w32tm configures and queries W32Time
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3365