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
# 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 |