Skip to content

Instantly share code, notes, and snippets.

@linusgke
Last active February 23, 2023 16:39
Show Gist options
  • Save linusgke/8357f92388050b4d9cc04fd75e56883d to your computer and use it in GitHub Desktop.
Save linusgke/8357f92388050b4d9cc04fd75e56883d to your computer and use it in GitHub Desktop.
:: 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