Controls the execution of external tasks such as running .vbs or .cmd scripts.
You can use dynamic tokens to extend Workspace Environment Management actions to make them more powerful.
External task list
A list of your existing external tasks. You can use Find to filter the list by name or ID against a text string.
To add an external task
- Use the context menu Add command.
- Enter details in the New External Task dialog tabs, then click OK.
Fields and controls
Name. Lets you specifiy the display name of the external task, which appears in the external task list.
Description. Lets you specify additional information about the external task.
Path. Lets you specify the path to the external task. The path resolves in the user environment.
Arguments. Lets you specify launch parameters or arguments.
External Task State. Controls whether the external task is enabled or disabled. When disabled, the agent does not process the task even if the task is assigned to users.
Refresh. Controls whether to run the external task when users refresh the agent. By default, the option is selected.
Reconnect. Controls whether to run the external task when a user reconnects to a machine on which the agent is running. By default, the option is selected. If the WEM agent is installed on a physical Windows device, this option is not applicable.
Logon. Controls whether to run the external task when users log on. By default, the option is selected.
Logoff. Controls whether to run the external task when users log off. This option does not work unless Citrix User Logon Service is running. By default, the option is not selected.
Run Hidden. If selected, the task runs in the background and is not displayed to users.
Run Once. Controls whether WEM runs the task only once. By default, WEM runs an external task once. You need to select the option if you have many external tasks assigned to your users. Doing so reduces the agent refresh time.
Execution Order. Lets you specify the order of execution for each task. The option can be useful when you have multiple tasks assigned to users and some tasks rely on others to run successfully. By default, the value is 0.
Wait for Task Completion. Lets you specify how long the agent waits for the task to complete. By default, the Wait Timeout value is 30 seconds.
Action Type. Describes what type of action the external task is.
After you enable the feature, the WEM agent creates a log file named
Citrix WEM Agent Logoff.log the first time a user logs off. The log file is located in a user’s profile root folder. The WEM agent writes information to the log file every time the user logs off. The information helps you monitor and troubleshoot issues related to external tasks.