TaskRunFlags Enumeration

Defines how a task is run.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[FlagsAttribute]
public enum TaskRunFlags

Members

NoFlags0The task is run with all flags ignored.
AsSelf1The task is run as the user who is calling the Run method.
IgnoreConstraints2The task is run regardless of constraints such as "do not run on batteries" or "run only if idle".
UseSessionId4The task is run using a terminal server session identifier.
UserSID8The task is run using a security identifier.

See Also