TaskLogonType Enumeration
Defines what logon technique is required to run a task.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(TaskLogonType.S4U)]
public enum TaskLogonType
None | 0 | The logon method is not specified. Used for non-NT credentials. |
Password | 1 | Use a password for logging on the user. The password must be supplied at registration time. |
S4U | 2 |
Use an existing interactive token to run a task. The user must log on using a service for user (S4U) logon. When an S4U logon is
used, no password is stored by the system and there is no access to either the network or to encrypted files.
|
InteractiveToken | 3 | User must already be logged on. The task will be run only in an existing interactive session. |
Group | 4 | Group activation. The groupId field specifies the group. |
ServiceAccount | 5 |
Indicates that a Local System, Local Service, or Network Service account is being used as a security context to run the task.
|
InteractiveTokenOrPassword | 6 |
First use the interactive token. If the user is not logged on (no interactive token is available), then the password is used.
The password must be specified when a task is registered. This flag is not recommended for new tasks because it is less reliable
than Password.
|