When launching a Windows Instance on AWS I'd like to trigger the "Internet Time" to be updated via the command line (powershell or cmd).
If I go to "Adjust date/time" and select the "Internet Time" tab I see "This computer is set to automatically synchronize on a scheduled basis."
The problem is that when I inspect the event log I see that the server never actually attempts to synchronize the time.
If I click on "Change Settings" and click the "Update now" button the text changes to: "Next synchronization: 1/1/2015 at 9:00 AM" "The clock was successfully synchronized with time-a.nist.gov on 1/1/2015 at 7:00 AM."
After this process I can see in the event log that the time is synchronized each night and the text in the UI gets updated accordingly.
I'd like to find the shell command that initiates this process so I can fire it the first time when the server is setup.
Thanks in advance to any suggestions!