title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SessionStateChangeTrigger.StateChange property |
For scripting, gets or sets the kind of Terminal Server session change that would trigger a task launch. |
ae1460c7-2939-4fcb-b7fc-edc859596bc4 |
|
|
|
|
|
reference |
05/31/2018 |
For scripting, gets or sets the kind of Terminal Server session change that would trigger a task launch.
SessionStateChangeTrigger.StateChange As Integer
The kind of Terminal Server session change that triggers a task to launch.
The possible values are from the TASK_SESSION_STATE_CHANGE_TYPE enumeration.
Value | Meaning |
---|---|
|
Terminal Server console connection state change. For example, when you connect to a user session on the local computer by switching users on the computer. |
|
Terminal Server console disconnection state change. For example, when you disconnect to a user session on the local computer by switching users on the computer. |
|
Terminal Server remote connection state change. For example, when a user connects to a user session by using the Remote Desktop Connection program from a remote computer. |
|
Terminal Server remote disconnection state change. For example, when a user disconnects from a user session while using the Remote Desktop Connection program from a remote computer. |
|
Terminal Server session locked state change. For example, this state change causes the task to run when the computer is locked. |
|
Terminal Server session unlocked state change. For example, this state change causes the task to run when the computer is unlocked. |
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Type library |
|
DLL |
|