Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines what logon technique is required to run a task.
Syntax
typedef enum _TASK_LOGON_TYPE {
TASK_LOGON_NONE = 0,
TASK_LOGON_PASSWORD = 1,
TASK_LOGON_S4U = 2,
TASK_LOGON_INTERACTIVE_TOKEN = 3,
TASK_LOGON_GROUP = 4,
TASK_LOGON_SERVICE_ACCOUNT = 5,
TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD = 6
} TASK_LOGON_TYPE;
Constants
TASK_LOGON_NONE Value: 0 The logon method is not specified. Used for non-NT credentials. |
TASK_LOGON_PASSWORD Value: 1 Use a password for logging on the user. The password must be supplied at registration time. |
TASK_LOGON_S4U Value: 2 The service will log the user on using Service For User (S4U), and the task will run in a non-interactive desktop. 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. |
TASK_LOGON_INTERACTIVE_TOKEN Value: 3 User must already be logged on. The task will be run only in an existing interactive session. |
TASK_LOGON_GROUP Value: 4 Group activation. The groupId field specifies the group. |
TASK_LOGON_SERVICE_ACCOUNT Value: 5 Indicates that a Local System, Local Service, or Network Service account is being used as a security context to run the task. |
TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD Value: 6 Not in use; currently identical to TASK_LOGON_PASSWORD. Windows 10, version 1511, Windows 10, version 1507, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows Vista and Windows Server 2008: 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 TASK_LOGON_PASSWORD. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | taskschd.h |