title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RestartOnFailure (settingsType) Element |
Specifies that the Task Scheduler will attempt to restart the task if the task fails for any reason. |
c90d8c62-dd97-4ea6-bd87-37b0915e0b38 |
|
|
|
|
reference |
05/31/2018 |
Specifies that the Task Scheduler will attempt to restart the task if the task fails for any reason.
<xs:element name="RestartOnFailure"
type="restartType"
minOccurs="0"
/>
The RestartOnFailure element is defined by the settingsType complex type.
Element | Derived from | Description |
---|---|---|
Settings | settingsType | Contains the settings that the Task Scheduler uses to perform the task. |
Element | Type | Description |
---|---|---|
Count | unsignedByte | Specifies the number of times that the Task Scheduler will attempt to restart the task. |
Interval | duration | Specifies how long the Task Scheduler will attempt to restart the task. |
When an application specifies task settings, this information is accessed through the RestartCount and RestartInterval properties of the ITaskSettings interface. For scripting, this information is accessed through the TaskSettings.RestartCount and TaskSettings.RestartInterval properties.
Both child elements must be set to specify how the Task Scheduler restarts the task.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |