Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 6 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .