Specifies when the Task scheduler must to start the task during emergency Automatic maintenance, if it failed to complete during regular Automatic maintenance.
The format for this string is PnYnMnDTnHnMnS, where nY is the number of years, nM is the number of months, nD is the number of days, T is the date/time separator, nH is the number of hours, nM is the number of minutes, and nS is the number of seconds (for example, "PT5M" specifies 5 minutes and "P1M4DT2H5M" specifies one month, four days, two hours, and five minutes). The minimum value is one minute. For more information about the duration type, see XML Schema Part 2: Datatypes Second Edition. Minimum Deadline a task can use is 1 day. The value of the Deadline element should be greater than the value of the Period element. If the deadline is not specified the task will not be started during emergency Automatic maintenance.
<xs:element name="Deadline" maxOccurs="1" minOccurs="0" > <xs:simpleType> <xs:restriction base="duration" > <xs:minInclusive value="P1D" /> </xs:restriction> </xs:simpleType> </xs:element>
The Deadline element is defined by the maintenanceSettingsType complex type.
Specifies the task settings the Task scheduler will use to start task during Automatic maintenance.
For C++ programming, this idle setting is specified using the IMaintenanceSettings::Deadline property.
The following XML defines a months calendar that runs the task in March.
<MaintenanceSettings> <Period>P5D</Period> <Deadline>P15D</Deadline> </MaintenanceSettings>
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]