I was having this issue as well, and a solution I found was to create a task to resync the time server at login. I'm under the impression this task has to be run with admin privileges, so here are the instructions to do so:
- Open Task Scheduler: Search for "Task Scheduler" and open it.
- Create a New Task: In the Task Scheduler window, click on “Create Task…” in the right-hand pane under “Actions”.
- General Settings: In the “General” tab, give your task a name, like “Time Sync at log on”. Select “Run with highest privileges” to ensure the task can run the time sync command.
- Triggers: Switch to the “Triggers” tab and click “New…”. From the “Begin the task” dropdown, select “At log on”. Next, activate "Delay task for" and set 3 minutes (you can manually type it in). You might have to play with your delay and checking by turning off the computer and turning it back on, and seeing if you had sufficient delay for the w32tm service to start. In my case, 3 minutes worked, while 2 minutes didn't. Click “OK” to save the trigger settings.
- Actions: Go to the “Actions” tab and click “New…”. Set “Action” to “Start a program”. In the “Program/script” field, type w32tm and in the “Add arguments (optional)” field, type /resync. Click “OK” to save the action settings.
- Conditions and Settings: I disabled "Start the task only if the computer is on AC power", activated "Run task as soon as possible after a scheduled start is missed", and set "Stop the task if it runs longer than" to 1 hour.
- Save the Task: Click “OK” to save and exit the task creation process.
Notes: When I tried doing this with a trigger based on startup, it wasn't working. A quick Google showed some possible solutions, but rather than go that path I just did what other scheduled tasks did, which was to trigger based on log on. Also, as noted in the "Triggers" instructions, the w32tm service takes a couple of minutes to start after the computer was turned off, so you have to enable a delay on the trigger to wait for the service to come back online.
Additional information: My issue was that the clock was off by a couple of seconds (1-4 secs) after my computer was turned off. I think the longer it was off, the more off it was. But these seconds were enough for cloud programs to start complaining.
More notes! The parameters to check for w32tm are explained here.