2.3.9 TASK_LOGON_TYPE

The TASK_LOGON_TYPE is a DWORD parameter to the SchRpcRegisterTask method. It specifies how a user context is established for a task.

Value

Meaning

0x00000000

TASK_LOGON_NONE: No logon type specified.

0x00000001

TASK_LOGON_PASSWORD: The task can be run as it would be run by the user, with the supplied userid and password. The task can run non-interactively.

0x00000002

TASK_LOGON_S4U: When the task is started, the task can run as if by the user with Service for User (S4U), as specified in [MS-SFU]. The task can run non-interactively.

0x00000003

TASK_LOGON_INTERACTIVE_TOKEN: The task can be started in the user's interactive logon session.

0x00000004

TASK_LOGON_GROUP: Same as TASK_LOGON_INTERACTIVE_TOKEN except that the task can run for any member of the security group.

0x00000005

TASK_LOGON_SERVICE_ACCOUNT: The task can run in a machine context, that is, local system, local service, or network service. The task can run non-interactively.

 0x00000006

TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD: If the user is logged on when the task is started, the TASK_LOGON_INTERACTIVE_TOKEN logon type is used, otherwise the TASK_LOGON_PASSWORD is used.