Skip to content

Instantly share code, notes, and snippets.

@FrancescoLuzzi
Last active February 24, 2025 22:21
Show Gist options
  • Save FrancescoLuzzi/8ab60f7c11b68de884015b3cce2d7b64 to your computer and use it in GitHub Desktop.
Save FrancescoLuzzi/8ab60f7c11b68de884015b3cce2d7b64 to your computer and use it in GitHub Desktop.
fix windows time sync
# more infos:
# https://learn.microsoft.com/it-it/troubleshoot/windows-client/active-directory/w32time-not-start-on-workgroup
# https://learn.microsoft.com/it-it/troubleshoot/windows-server/active-directory/client-clock-reverts-to-previous-time
sc.exe query w32time
# if status is stopped delete all triggers
sc triggerinfo w32time delete
# if status is stopped reconfigure w32time startup and shutdown
# sc.exe qtriggerinfo w32time
sc.exe triggerinfo w32time start/networkon stop/networkoff
# restart the pc and launch "sc.exe query w32time"
# stop and reset w32time service
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment