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 |
|
DLL |
|
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin