Created
February 23, 2023 16:36
-
-
Save linusgke/e783d7b448266c218ee130860fead5e7 to your computer and use it in GitHub Desktop.
This file contains 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
:: 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