6

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. https://superuser.com/a/1050717/44355

Is there a way to perform this via some windows 10 api on the commandline?

10

Start a PowerShell with elevated rights and use the W32tm command:

W32tm /resync /force

For further reading: interesting article about the difference between NET TIME and W32tm.

| improve this answer | |
  • The link goes nowhere. Do you have an updated version? – random Apr 4 '19 at 18:33
  • Updated the link, pointing to a snapshot of the article on archive.org – agtoever Apr 4 '19 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.