Here’s how to set your Windows server to sync its time with an NTP server.
- Open a Command Prompt as Administrator
- Enter: w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
- Enter: net stop w32time
- Enter: net start w32time
- Initiate a sync: w32tm /resync
- Check the status: w32tm /query /status
You’re done! You can also now use this server as a time server for other devices on your network. Just follow the above steps and replace pool.ntp.org with your server’s IP address.
If your server is a VM, you may need to disable time syncing from your hypervisor. Otherwise, your sync efforts will be for naught, as the VM will keep syncing with its hardware host.