Skip to content

Latest commit

 

History

History
84 lines (49 loc) · 1.77 KB

registeredtask-stop.md

File metadata and controls

84 lines (49 loc) · 1.77 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
RegisteredTask.Stop method
For scripting, stops the registered task immediately.
e4a533d8-5cf0-46ba-a603-f7a9c59ab0fd
Stop method Task Scheduler
Stop method Task Scheduler , RegisteredTask object
RegisteredTask object Task Scheduler , Stop method
apiref
RegisteredTask.Stop
taskschd.dll
COM
reference
05/31/2018

RegisteredTask.Stop method

For scripting, stops the registered task immediately.

Syntax

RegisteredTask.Stop( _
  ByVal flags _
)

Parameters

flags [in]

Reserved. Must be zero.

Return value

This method does not return a value.

Remarks

The RegisteredTask.Stop function stops all instances of the task.

System account users can stop a task, users with Administrator group privileges can stop a task, and if a user has rights to execute and read a task, then the user can stop the task. A user can stop the task instances that are running under the same credentials as the user account. In all other cases, the user is denied access to stop the task.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

RegisteredTask