w32tm /config /manualpeerlist:”ntp.goline.ch,ntp2.goline.ch” /reliable:yes /update
w32tm /config /manualpeerlist:[server],0x8 /syncfromflags:MANUAL
The actual IP address of the NTP server or its host name must be entered instead of [server].
The flag "0x8" forces w32time not to send "symmetric active" packets but normal "client" requests which the NTP server replies to as usual.
Then the following command can be used to immediately make the changes effective:
w32tm /config /update
If this command has completed successfully your system clock has synchronized to the given NTP server. To check it open a Date and Time window (click "time" icon in the lower right corner of the desktop) -> Change date and time settings -> Internet Time. You should see something similar to Figure 6.
Alternatively, the w32time service can be restarted:
net stop w32time
net start w32time
w32tm /query /peers
can be used to check the configuration. The output should look similar to the line below:
Time Remaining: 221.4934473s
Mode: 1 (Symmetric Active)
Stratum: 2 (secondary reference – syncd by (S)NTP)
PeerPoll Interval: 8 (256s)
HostPoll Interval: 8 (256s)
The current SNTP value is:[server],0x8
If the w32time service is restarted it sends immediately a request to the NTP server. Additionally, the command:
can be used to let w32time send a request.