Configure NTP on Windows 2012 server

From Peter Pap's Technowiki
Jump to: navigation, search

So you want your Windows server to get it's time from you local NTP server. Here's how to configure it:

1. Fire up Windows PowerShell as Administrator

2. Set the NTP servers:

w32tm /config /manualpeerlist:"" /syncfromflags:MANUAL

Obviously, replace the pool servers above with your internal NTP server hostnames or IP's.

3. Restart the Windows time service:

Stop-Service w32time
Start-Service w32time

You can check what you've done with:

w32tm /query /configuration
w32tm /query /status