Last active
February 23, 2023 16:39
-
-
Save linusgke/8357f92388050b4d9cc04fd75e56883d 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 current domain controller as NTP time server | |
:: https://gist.github.com/elektr0nisch/8357f92388050b4d9cc04fd75e56883d | |
:: Ensure that w32time is running | |
net start w32time | |
:: Reconfigure | |
w32tm /config /syncfromflags:domhier /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