Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 2.03 KB

tasksettings-restartinterval.md

File metadata and controls

71 lines (41 loc) · 2.03 KB
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
RestartInterval property Task Scheduler
RestartInterval property Task Scheduler , TaskSettings object
TaskSettings object Task Scheduler , RestartInterval property
apiref
TaskSettings.RestartInterval
taskschd.dll
COM
reference
05/31/2018

TaskSettings.RestartInterval property

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.

Syntax

TaskSettings.RestartInterval As String

Property value

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.

Remarks

When reading or writing XML for a task, this setting is specified in the Interval element of the Task Scheduler schema.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

Task Scheduler