Skip to content

Instantly share code, notes, and snippets.

@JBlond
Created January 2, 2017 16:44
Show Gist options
  • Save JBlond/26affb99dad33d992d6bc24b7de24b51 to your computer and use it in GitHub Desktop.
Save JBlond/26affb99dad33d992d6bc24b7de24b51 to your computer and use it in GitHub Desktop.
windows server time NTP sync
@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