Configure NTP on Windows 2012 server

From Peter Pap's Technowiki
Revision as of 02:27, 16 July 2020 by Ppapa (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:"0.pool.ntp.org 1.pool.ntp.org" /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