TaskRunFlags Enumeration
Defines how a task is run.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[FlagsAttribute]
public enum TaskRunFlags
NoFlags | 0 | The task is run with all flags ignored. |
AsSelf | 1 | The task is run as the user who is calling the Run method. |
IgnoreConstraints | 2 | The task is run regardless of constraints such as "do not run on batteries" or "run only if idle". |
UseSessionId | 4 | The task is run using a terminal server session identifier. |
UserSID | 8 | The task is run using a security identifier. |