ScheduledTask¶
Deletes a specified task or task folder. Can also create and enable or disable a given task.
Required Parameters¶
Paramater |
Description |
Type |
---|---|---|
|
Specifies the path to task or task folder. This parameter should start with a single backslash indicating the root of all scheduled tasks. See the below examples for more details. |
string |
Optional Parameters¶
Paramater |
Description |
Type |
Default |
---|---|---|---|
|
Specifies the operation to take place. |
Enum:
|
|
|
Specifies the raw string XML to create the task with. This is only applicable with |
string |
None |
Examples¶
Deletes the specified folder of tasks, including all tasks within said folder:
- path: '\Microsoft\Windows\Windows Defender"
operation: deleteFolder
Deletes the specified task:
- !scheduledTask: {path: '\Microsoft\Windows\XblGameSave\XblGameSaveTask', operation: delete}