Using schtasks in interactive mode

Posted by CFP on Super User See other posts from Super User or by CFP
Published on 2010-02-22T10:43:46Z Indexed on 2010/04/23 17:43 UTC
Read the original article Hit count: 423

Filed under:
|

Hello!

I'd like to create a scheduled task from the command line, in interactive mode. The at hh:mm /interactive program command fails, stating that security policies do not allow interactive execution.

I'd therefore like to use the schtasks command. But when I type something like

schtasks  /Create /TN MyTask /SC DAILY /ST "13:10" /TR "notepad.exe" /V1 /F

I get a message asking for my password, although I haven't set a password for my session. And when I leave the field blank, the command line answers that the task won't be able to run.

How can I fix this problem? And how can I make the task interactive? Using /RU SYSTEM prevents the task from being run in interactive mode.

Thanks! CFP.

© Super User or respective owner

Related posts about scheduled-tasks

Related posts about passwords