Each and every time on startup my computer is showing wrong time. So I started using w32tm /resync /force command to synchronise time from internet. I have configured my system to run this cmd script on startup. But running this script with administrator privileges only could update the time. Please help me to run a batch script to run as administrator on startup.
I also tried making a shortcut to batch, set its properties>advanced to run as administrator and then move the shortcut to the startup directory.But I couldn't bypass the prompt.
/Startupfolder or are you running as a scheduled task? – Vomit IT - Chunky Mess Style Aug 14 '17 at 18:23Generaltab you can also select the box labeled Run whether user is logged on or not. Have a look at https://superuser.com/questions/1005192/problems-scheduling-a-task-on-windows7/1005216#1005216 – Vomit IT - Chunky Mess Style Aug 14 '17 at 18:26shell:startuplocation, schedule it to run from Task Scheduler instead & be sure to use the options for the task as my answer shows in the link of my above comment in the Task Scheduler Properties section. Just createC:\Scripts& put it there instead & point the job to it. From theTriggerstab of the job, have it run At Logon from the drop down. See screen shot here for example: https://i.imgur.com/icI0n4P.png but read over the Task Scheduler Properties from the link on my answer in the above comment I left too. Let me know how it goes. – Vomit IT - Chunky Mess Style Aug 15 '17 at 11:46