I would like to be able to synchronize my windows 10 computer clock when it goes out of sync... From the commandline with 1 command.
This solution shows how to do it via settings.
Is there a way to perform this via some windows 10 api on the commandline?
2 Answers
Start a PowerShell or CMD with elevated rights and use the W32tm command:
W32tm /resync /forceFor further reading: interesting article about the difference between NET TIME and W32tm.
0net time /set also works and doesn't require admin rights.