Create a scheduled task with maximum privileges with schtasks

fbiville picture fbiville · Oct 9, 2012 · Viewed 8.1k times · Source

I've been browsing the docs of schtasks command and I didn't find any equivalent to the checkbox "Execute with maximum privileges" (rough translation here, sorry) in the scheduled task admin windows GUI (and /RU SYSTEM doesn't achieve it).

Do you know if there is such an option with schtasks? If so, which Windows versions can benefit from it?

Thanks a lot for your help!

Rolf

Answer

Murtuza Kabul picture Murtuza Kabul · Oct 9, 2012

You will not find such thing because there is no such thing like maximum privileges. You must specify a user credential which has enough privileges to perform the task.

Failing to do so will cause the execution of scheduled task fail.

Here is the answer to execute the task with specified level of privileges.

https://superuser.com/questions/243605/how-do-i-specify-run-with-highest-privileges-in-schtasks