title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TaskSettings.RestartInterval property |
For scripting, gets or sets a value that specifies how long the Task Scheduler will attempt to restart the task. |
ad6f254d-55a8-478e-984e-a459f22043b5 |
|
|
|
|
|
reference |
05/31/2018 |
For scripting, gets or sets a value that specifies how long the Task Scheduler will attempt to restart the task.
This property is read/write.
TaskSettings.RestartInterval As String
A value that specifies how long the Task Scheduler will attempt to restart the task. If this property is set, the RestartCount property must also be set. 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.
When reading or writing XML for a task, this setting is specified in the Interval element of the Task Scheduler schema.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Type library |
|
DLL |
|