GUI vs Command-Line
The task scheduler GUI provides an option to run the scheduled task in an elevated context ("Run with highest privileges"), e.g.
I cannot find a corresponding flag for schtasks.exe. The closest thing I can find is to export an existing task (created with the GUI) with that property set and import it (and potentially modify it later).
Is there another way to create a scheduled task in an elevated process?
The option you are looking for is
/RL
:The documentation doesn't indeed mention it, probably by mistake; but the command help (
schtasks.exe /create /?
) does.