How to run a task using schtask with privileges?

I am trying to make a UAC bypass error with the task scheduler, only instead of using the GUI tool, I am trying to do this with schtasks.exe (equivalent command line tool). I managed to do the same thing more or less, with the exception of the most important part - "run with the highest privileges."

The task scheduler error making all this possible - http://www.petri.co.il/bypass-uac-using-desktop-shortcut.htm

This is the command I tried:

schtasks /create /tn name /tr notepad.exe /sc once /st 00:01 /RL highest

When I add / RL maximum, he says ERROR: Access is denied. This does not happen when I use the task scheduler.

+3
source share
2 answers

, , .

, schtasks.

, , , ( schtasks , ).

( , , . , .)

+1

, .

0

Source: https://habr.com/ru/post/1786125/


All Articles