Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When creating a task with a batch file or command line, how do I specify the following option?

"Run task as soon as possible after a scheduled start is missed "

I know that this option exists via the gui, but I need to specify it via command line.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

There is no command line option for this. One workaround is to create the tasks with that option, using the GUI, then export it to an XML file. Then you can run it with

schtasks /create /TN "New Task" /xml "C:\TEMP\New Task.xml" /RU DOMAIN\username /RP password
share|improve this answer
    
Thank you so much. Exactly what I was looking for. Good to know its not possible with just commandline either. –  Nick Sep 27 '13 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.