Is there a way I can synchronize the system clock with an Internet Time server (i.e: time.nist.gov) via command-line? Preferably, this should be something executable via BAT or PowerShell script.
This particular need arises because I have some VMs for which I regularly use the "save machine state" function, and these don't typically re-synchronize their clocks when I "wake" them. Often times, I'll re-load them to find the clock is (and is staying) days out-of-synch.
Re-synching the clock through the Internet Time Settings dialog usually works fine, but it takes a lot of mouse-clicking to do this. I'd much rather just keep a script on the desktop that I can double-click and have the job done for me.
Right now this is for a system running Windows 7 Home x64, but backward-compatibility to XP SP3 would be nice to have.
feedback-hub:?contextid=58&feedbackid=f15278d4-b20d-4a9a-9693-cdf8fbaaa669&form=1&src=1
<- Place into Windows Run dialogue if you have feedback-hub installed from the windows store