TASK_LOGON_TYPE enumeration

Defines what logon technique is required to run a task.

Syntax


typedef enum  { 
  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

The logon method is not specified. Used for non-NT credentials.

TASK_LOGON_PASSWORD

Use a password for logging on the user. The password must be supplied at registration time.

TASK_LOGON_S4U

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

User must already be logged on. The task will be run only in an existing interactive session.

TASK_LOGON_GROUP

Group activation. The groupId field specifies the group.

TASK_LOGON_SERVICE_ACCOUNT

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

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

See also

Task Scheduler Enumerated Types

 

 

Community Additions

ADD
Show:
© 2014 Microsoft