I"m trying to duplicate the steps in this article for creating a shortcut that launches a program without a UAC prompt. I'd like to create the task from the command line, however.
Here's the schtasks.exe command I'm using:
schtasks /create /tn MyTaskName /tr "c:\MyApplication.exe" /sc ONCE /st 00:00 /RL HIGHEST /RU BUILTIN\Administrators
/st switches are tripping me up. I don't want to specify a schedule or a start time but only run the task on demand.