Created
January 2, 2017 16:44
-
-
Save JBlond/26affb99dad33d992d6bc24b7de24b51 to your computer and use it in GitHub Desktop.
windows server time NTP sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
net stop w32time | |
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org" | |
w32tm /config /reliable:yes | |
net start w32time | |
w32tm /query /configuration | |
w32tm /resync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment