Skip to content

Instantly share code, notes, and snippets.

@JonathanMH
Created January 9, 2020 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanMH/0d8e52d8983cdde222a105f907d1c8d8 to your computer and use it in GitHub Desktop.
Save JonathanMH/0d8e52d8983cdde222a105f907d1c8d8 to your computer and use it in GitHub Desktop.
unfuck windows time
net stop w32time
net start w32time
w32tm /resync /nowait
# $trigger = New-JobTrigger -AtStartup -RandomDelay 00:00:30
# Register-ScheduledJob -Trigger $trigger -FilePath C:\Users\jonat\ntp-trigger.ps1 -Name StartupTriggerNTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment