How to change windows server time and update NTP Settings – VirtuallyThatGuy

Another quick blog post about changing and updating ntp settings on all windows servers in the lab to sync from uk.pool.ntp.org as time source.

To update, use the command below (2008 and 2012 server compatible)

w32tm /config /manualpeerlist:”uk.pool.ntp.org” /syncfromflags:manual /reliable:yes /update

change the ntp_server with your source

Restart the time service

net stop w32time
net start w32time

Resync the time

w32tm /resync

Verify your sync status

w32tm /query /status

Commands above should be fine if your sources are working correctly and/or your connection is OK (firewall or Microsoft Forefront can be an issue also). The commands below can help with troubleshooting

To list out peers

w32tm /query /peers

To list out NTP Sources:

w32tm /query /source

# All commands together as per below

w32tm /config /manualpeerlist:”uk.pool.ntp.org” /syncfromflags:manual /reliable:yes /update

net stop w32time
net start w32time

w32tm /resync

w32tm /query /status

w32tm /query /peers

w32tm /query /source

You May Also Like

About the Author: VirtuallyThatGuy

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *