1
I can see the time synchronisation task has been already created by Microsoft, but I never was able to make it work at system start up (or right after login). I tried giving delays (30 seconds or something), tried to run it with Administrators, etc, but none of them worked.
When I manually ran the command from the console, it failed. Of course, it worked if I ran the console as administrator.
So, is there any way to make this time synchronisation task work at system start up (of course, after the Internet connection is done)? If so, how I should set the properties of the SynchronizeTime
task?
1You can acomplish the samething by just using
w32tm /resync
within a command prompt/bash script/ect. You have conflicting settings. On one hand you have configured it to run when the user logs in on the other you have it configured to only run when the user is logged in. It would help to know, what pratical problem you are trying to solve, in order to provide alternatives to your approach. – Ramhound – 2016-11-28T21:00:20.737The computer has multiple operating systems. When I boot to Windows after using Linux, the time is wrong. So I need to correct the time when Windows starts. Running
w32tm /resync
from the command prompt (not administrator) also gave meAccess is denied
error. – Damn Vegetables – 2016-11-30T17:55:53.990Yes; You have to run the command in an elevated command prompt. If your user account isn't an Administrator, and a group policy is handling this behavior, you have to be an Administrator to sync the time. – Ramhound – 2016-11-30T19:00:29.317
My user is an administrator, but not the Administrator. That is, to use that command, I would have to click Yes on the UAC popup. Of course, no one would like to see the UAC at every boot. So, there is no way to synchronise the time without UAC at startup unless you are the Administrator? – Damn Vegetables – 2016-12-05T06:20:20.283
Configure your system to allow a normal user to change the time by doing that it no longer requires you to escalate the command to an Administrator – Ramhound – 2016-12-05T12:23:44.893