17
6
I wanted to disable the UAC popup box when running the command prompt as admin, but this didn't work for me. What did work, was setting the task scheduler to run it as admin given a specific trigger. The problem is, I want it to run via shortcut, and not every time I log on or every day at 10pm.
Is there a way to set a shortcut as a trigger for task scheduler?
I figured this might have something to do with "Event" trigger, but I don't really know how it works.
@Synetech Don't forgot the "Root" \ as well
"\Startup\foo bar"
– Lankymart – 2016-02-05T13:41:02.777One thing to watch out for is that the task name must uniquely identify the task, so you must make sure to use the correct path in the task name if the task is not in the root. For example, if you created a task-scheduler folder called
Startup
and then created a task calledfoo bar
, you have to use/tn "Startup\foo bar"
. – Synetech – 2013-09-30T14:10:54.023