Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Specifies when the Task scheduler must 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.
Element | Derived from | Description |
---|---|---|
MaintenanceSettings (maintenanceSettingsType) | maintenanceSettingsType | 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>
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps only] |
Minimum supported server |
Windows Server 2012 [desktop apps only] |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today