Windows – the difference between /U and /RU in SchTasks

scheduled-taskstask schedulerwindows 7

SchTasks help describes both /U and /RU as "A value that specifies the user context under which the task runs"

What is the difference, then, between /U and /RU ?

What am I missing?

Best Answer

/RU is for running the actual task that is being scheduled. /U is for who will be scheduling the task, look very closely at the context these commands are used Here. You will notice that things like simply deleting the scheduled task don't have an /RU command just a /U. Basically it allows you to schedule the task as administrator or even as your user then run the actual task as the built in system account.

Related Question