Task |
[FlagsAttribute] public enum TaskRunFlags
| Member name | Value | Description |
|---|---|---|
| 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. |