ScheduledTask#

Deletes a specified task or task folder. Can also create and enable or disable a given task.

Required Parameters#


Paramater

Description

Type

path

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

operation

Specifies the operation to take place.

Enum:
delete
deleteFolder
enable
disable

delete

data

Specifies the raw string XML to create the task with. This is only applicable with operation enable or disable.

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}