Skip to content

Instantly share code, notes, and snippets.

@aivrit
aivrit / fix_windows_time.ps1
Last active March 24, 2024 18:58
Fix windows 10 time sync - workaround time service failure with a non-ntp manual setting approach
# this script was created to help sync time for machines running windows 10 where
# windows time service keeps failing, where time synchronization is constantly unsuccessfull
# this workaround approach has been taken since all other solutions on the web have not proven successfull in my case
# this solution should work for any windows 10 machine who has syncing issues
# run this script with admin privileges as a daily schedule on windows task scheduler and all your problems will be solved
# enjoy
$time = Invoke-RestMethod -Uri http://worldtimeapi.org/api/ip