Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The ITaskSchedulerService RPC interface provides methods to control scheduled tasks using XML task definitions.<64>
If the server implements the ITaskSchedulerService interface, it MUST implement the methods as specified in the following table.
Methods in RPC Opnum Order
Method |
Description |
---|---|
The SchRpcHighestVersion method returns the highest version of the Task Scheduler Remoting Protocol supported by the server. Opnum: 0 |
|
The SchRpcRegisterTask method registers a task with the server. Opnum: 1 |
|
The SchRpcRetrieveTask method returns a task definition. Opnum: 2 |
|
The SchRpcCreateFolder method creates a new folder. Opnum: 3 |
|
The SchRpcSetSecurity method sets a security descriptor on a task or folder. Opnum: 4 |
|
The SchRpcGetSecurity method gets the security descriptor associated with a task or folder. Opnum: 5 |
|
The SchRpcEnumFolders method retrieves a list of folders on the server. Opnum: 6 |
|
The SchRpcEnumTasks method returns the list of tasks in a specific folder. Opnum: 7 |
|
The SchRpcEnumInstances method returns a list of instances of a specified task that are currently running. Opnum: 8 |
|
The SchRpcGetInstanceInfo method gets information about an instance of a running task. Opnum: 9 |
|
The SchRpcStopInstance method stops a specified instance of a task. Opnum: 10 |
|
The SchRpcStop method stops all currently running instances of a task specified by a path. Opnum: 11 |
|
The SchRpcRun method runs a task specified by a path. Opnum: 12 |
|
The SchRpcDelete method deletes a task or folder in the task store. Opnum: 13 |
|
The SchRpcRename method is unused. Opnum: 14 |
|
The SchRpcScheduledRuntimes method returns scheduled run times. Opnum: 15 |
|
The SchRpcGetLastRunInfo method returns information about the task's last run. Opnum: 16 |
|
The SchRpcGetTaskInfo method returns information about a specified task. Opnum: 17 |
|
The SchRpcGetNumberOfMissedRuns method returns the number of times a task was scheduled to run but did not due to the server being unavailable (for example, powered off). Opnum: 18 |
|
The SchRpcEnableTask method enables or disables a task. Opnum: 19 |