Server Fault is a question and answer site for system and network administrators. 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

I have a script that creates some scheduled tasks on a Windows Server 2008 R2 box using schtasks.exe, and I'd like that script to set the 'If an instance of the task is already running, run new instances in parallel' setting.

I've poked around the documentation and options for schtasks.exe (which is what I'm using to create the tasks), and don't see any way to set this setting through a script.

Anyone know whether there's an option or other utility that I'm missing?

share|improve this question
up vote 1 down vote accepted

The only way that I have been able to find to set that option in a scripted way is to edit the XML of the task itself. You are specifically looking for the TaskSettings.MultipleInstances property.

For example, a task that I have on my Windows 7 machine looks, in part, like this:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="">





Notice the <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy> section. My only thoughts right now are to insert the XML programatically after the task is created.

share|improve this answer

Your Answer


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.