windows 10 – How do I start an elevated process with schtasks.exe?


The task scheduler GUI provides an option to run the scheduled task in an elevated context (“Run with highest privileges”), e.g.

Scheduled Task Properties (emphasis added)

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?