Skip to content

Instantly share code, notes, and snippets.

@jhochwald
Created March 15, 2017 02:04
Show Gist options
  • Save jhochwald/69e5054c9f3e2a8b799f5495a5e93d07 to your computer and use it in GitHub Desktop.
Save jhochwald/69e5054c9f3e2a8b799f5495a5e93d07 to your computer and use it in GitHub Desktop.
Synchronize time with external NTP server
rem Stop the Time Service
net stop w32time
rem This is the German List
w32tm /config /syncfromflags:manual /manualpeerlist:"0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org"
# Make your PDC a reliable time source for others
w32tm /config /reliable:yes
rem Start the Time Service
net start w32time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment