Difference between revisions of "Configure NTP on Windows 2012 server"
From Peter Pap's Technowiki
(Created page with "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: ...") |
|||
Line 13: | Line 13: | ||
Stop-Service w32time | Stop-Service w32time | ||
Start-Service w32time | Start-Service w32time | ||
+ | |||
+ | |||
+ | You can check what you've done with: | ||
+ | |||
+ | w32tm /query /configuration | ||
+ | w32tm /query /status |
Latest revision as of 02:27, 16 July 2020
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