Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Interval (restartType) Element

Specifies how long the Task Scheduler will attempt to restart the task. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, "PT5M" is 5 minutes, "PT1H" is 1 hour, and "PT20M" is 20 minutes). The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.

<xs:element name="Interval">

The element is defined by the restartType complex type.

Parent element

ElementDerived fromDescription
RestartOnFailure restartType

Specifies that the Task Scheduler will attempt to restart the task if the task fails for any reason.


If this element is specified, the Count element must also be specified to tell the Task Scheduler how many times it should try to restart the task.

For C++ development, see RestartInterval Property of ITaskSettings.

For script development, see TaskSettings.RestartInterval.


Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements



Community Additions

© 2015 Microsoft