Select tasks that are triggered when certain actions are performed in the user environment.
With triggers, a user can unplug a laptop, move it to another location, plug it in again, and maintain their current session while using more appropriate infrastructure resources. Triggers also provide a seamless experience for users who log in to the same virtual desktop session from different devices.
The endpoint IP address.
The previous endpoint IP address. This variable only exists for the Session reconnected trigger and if the user is connecting from a different client.
The endpoint name.
- Start the VMware Dynamic Environment Manager Management Console.
- Open the User Environment tab.
- Select Triggered Tasks and click Create.
- Enter a name for the settings definition.
- Configure the triggered task settings.
Option Description Trigger Select the event that is used to trigger this task.
- Workstation locked
- Workstation unlocked
- Session disconnected
- Session reconnected
- App Volumes logon-time apps delivered
After App Volumes attaches all AppStacks, it initiates the App Volumes logon-time apps delivered event. This event is useful when VMware Dynamic Environment Manager performs actions during logon with conditions that rely on an AppStack not yet attached.
Only applies if (endpoint) IP has changed (Optional) If Workstation unlocked or Session reconnected is selected, this additional setting controls whether the task is performed always, or only if the IP address for Workstation unlocked and endpoint IP address for Session reconnected changed since the session was disconnected. This option can be used to perform tasks when the user network location has changed. Action
- DirectFlex refresh
DirectFlex configuration is normally only processed during logon, and any changes made while a user is logged in are not picked up during the session. To re-read the DirectFlex configuration while a user is logged in, configure a triggered task to perform a DirectFlex refresh.
- User Environment refresh
Certain user environment settings can be refreshed during the session. The Refresh setting allows you to refresh the following types of settings: ADMX-based Settings, Application Blocking Settings, Drive Mappings, Environment Variables, File Type Associations, Horizon Smart Policies, Printer Mappings, Privilege Elevation Settings, Shortcuts, and Triggered Task Settings.Note: Refreshing Horizon Smart Policies is best performed at the Reconnect session trigger, to ensure that the Horizon remote desktop experience components pick up the new policies.
- Computer Environment refresh
Certain computer environment settings can be refreshed during the session. The Refresh setting allows you to refresh the following types of settings: ADMX-based Settings and Horizon Smart Policies.Note: Refreshing Horizon Smart Policies for computer environment settings is best performed at the Reconnect session trigger, to ensure that the Horizon remote desktop experience components pick up the new policies.
- Run custom command
To start a custom command, select this action . The Command setting can contain environment variables. You can enter arguments to the command through the Arguments setting.
- Display message
To display a message, select this action .
Show message Controls whether a message is displayed when the selected action is performed. Caption Specifies the caption of the message dialog box. Can contain environment variables. Message Specifies the message text. Can consist of multiple lines and can contain environment variables. Close automatically after (Optional) If this setting is configured, the message will automatically disappear after the specified number of seconds, otherwise the message remains on the screen until the user closes it. Also allow user to dismiss message (Optional) If Close automatically after is configured, this setting controls whether the user can close the message before the timeout has expired.
- Click Save.