Skip to content

Instantly share code, notes, and snippets.

@linusgke
Created February 23, 2023 16:36
Show Gist options
  • Save linusgke/e783d7b448266c218ee130860fead5e7 to your computer and use it in GitHub Desktop.
Save linusgke/e783d7b448266c218ee130860fead5e7 to your computer and use it in GitHub Desktop.
:: Windows script enabling w32time and setting NTPs of Physikalisch-Technische Bundesanstalt (PTB) in Braunschweig
:: https://gist.github.com/elektr0nisch/e783d7b448266c218ee130860fead5e7
:: Ensure that w32time is running
net start w32time
:: Reconfigure
w32TM /config /syncfromflags:manual /manualpeerlist:"ptbtime1.ptb.de ptbtime2.ptb.de ptbtime3.ptb.de ptbtime4.ptb.de" /update
w32TM /resync
:: Restart service (even though documentation doesn't require this, it wont hurt)
net stop w32time
net start w32time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment