When I use the GUI Task Scheduler, I can easily check the "Run with highest privileges" checkbox.

I found no such option in the SchTasks command line too, however.

Is there a way to do that from the command line?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 3 down vote accepted

That's what the /RL option does. Example: SCHTASKS /Create /TN "New Task" /SC HOURLY /TR blah.exe /RU username /RP password /RL

link|improve this answer
feedback

/RL level Sets the Run Level for the job. Valid values are LIMITED and HIGHEST. The default is LIMITED.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.