Skip to content

Latest commit

 

History

History
86 lines (49 loc) · 2.44 KB

taskschedulerschema-terminateonidleend-idlesettingstype-element.md

File metadata and controls

86 lines (49 loc) · 2.44 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
StopOnIdleEnd (idleSettingsType) Element
Specifies that the Task Scheduler will stop the task if the idle condition ends before the task is completed.
5e8e4fd9-bba1-4ede-a0b3-9f50feb1b6f3
StopOnIdleEnd element Task Scheduler
apiref
TerminateOnIdleEnd
Schema
reference
05/31/2018

StopOnIdleEnd (idleSettingsType) Element

Specifies that the Task Scheduler will stop the task if the idle condition ends before the task is completed.

<xs:element name="StopOnIdleEnd"
    type="boolean"
    minOccurs="0"
    default="true"
 />

The StopOnIdleEnd element is defined by the idleSettingsType complex type.

Parent element

Element Derived from Description
IdleSettings idleSettingsType Specifies how the Task Scheduler performs tasks when the computer is in an idle state.

Remarks

For C++ development, see StopOnIdleEnd Property of IIdleSettings.

For script development, see IdleSettings.StopOnIdleEnd.

Examples

The following XML defines an idle setting that indicates the task should not be performed when the idle condition ends.

<IdleSettings>
    <StopOnIdleEnd>false</StopOnIdleEnd>
</IdleSettings>

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements