سؤال

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

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top