Actions (taskType) Element
Contains the actions performed by the task.
<xs:element name="Actions" type="actionsType" />
The Actions element is defined by the taskType complex type.
|Task||taskType||Describes the task that is performed by the Task Scheduler service.
|ComHandler||comHandlerType||Specifies an action that fires a handler.
|Exec||execType||Specifies an action that executes a command-line operation.
|SendEmail||sendEmailType||Specifies an action that sends an email message.
|ShowMessage||showMessageType||Specifies an action that shows a message box.
|Context||Principal identifier of the user who is the security context for the actions of the task.
The child elements listed previously (maximum 32) are defined by the actionGroup group. These elements can be added in any order.
For C++ development, the actions of a task are defined in the IActionCollection interface.
For script development, the actions of a task are defined in the ActionCollection object.
For more information and a complete example of the XML for a task that contains a single execution action, see Time Trigger Example (XML).
|Minimum supported client
||Windows Vista [desktop apps only]
|Minimum supported server
||Windows Server 2008 [desktop apps only]