Configuring time sync to NTP server

Windows already includes NTP Time Sync client which is running as a Windows Service “Windows Time”.

Below is a list of most important command parameters to configure the Windows NTP Time Sync client.

It is most safe to execute these commands in an Administrative command line window:

w32tm /register

Registers the NTP time sync client as a Windows Service. Make sure to open “Services” and start the “Windows Time” service.

w32tm /config /manualpeerlist:"myntpserver.mydomain.com,0x8" /syncfromflags:manual /update

Configures the NTP time sync client to use “myntpserver.mydomain.com” as the NTP time server.

w32tm /resync

Tells a computer that it should resynchronize its clock as soon as possible, throwing out all accumulated error statistics.

w32tm /query /status

Displays the status of the NTP time sync client.

w32tm /monitor

Monitors the NTP time sync client.

This page was last updated on 2023-12-05