The SchRpcEnableTask method MUST enable or disable a task.

 HRESULT SchRpcEnableTask(
   [in, string] const wchar_t* path,
   [in] DWORD enabled
 );

path: MUST contain the full path to the task, in the format specified in section 2.3.11.

enabled: If TRUE, the server MUST enable the task. Otherwise, the server MUST disable the task.

Return Values: For more information about return codes, see [MS-ERREF] section 2.

Upon receipt of the SchRpcEnableTask call, the server MUST: