Managing Microsoft Teams with Citrix WEM

Managing Microsoft Teams with Citrix WEM

Utilising Citrix WEM to make Teams management a bit less rubbish

Here is a short post around a feature that has snuck into WEM without much fanfare, however will have a nice impact on customers trying to deliver, and manage Microsoft Teams in a Citrix environment.

JSON Actions

A new type of action has been introduced (always awesome when the WEM team delivers on feature requests): JSON Actions. This feature, amongst other use cases, allows you to manage Microsoft Teams JSON based configuration dynmically, and reliably. It even includes a Teams Template as part of the action definition.

The new feature includes several components:

  • The Action itself. This is defined under the WEM Web Console Actions -> JSON Files. You need to enable Process JSON Files on the top right pane.

json_actions

Once you have created the action, it will appear and be assignable the same as any other action type in WEM:

json_action_created

  • Monitoring of the Action found under Advanced Settings -> Monitoring Preferences -> Action Processing Results -> JSON Files

json_monitoring

This will, by default, upload processing data from the agent to WEM Service every 4 hours. It can be forced using the Retrieve statistics from the Agent Options in Monitoring > Administration > Agents.

json_retrieval

You should be aware of the configuration option under Advanced Settings -> Action Settings -> Other Settings -> Await policy and JSON file processing on logon. This controls if the logon process should wait for WEM Based GPO settings and JSON action processing to complete before the logon is completed.

json_action_settings

Importantly, from an actions processing ordering standpoint, JSON files are procesed before applications. This means you can write configurations and ensure they exist prior to the application being launched, which is nicely handled with WEM configuration.

An example of an application being configured to launch via WEM is shown below (note that this has a different name in the web console) for autostart but results in the same behaviour.

teams_action_auto_start

Teams Specific WEM Items

For Teams specific considerations, WEM has some nice options of note:

  • You will want to process the JSON Action in the user context.
  • The desktop-config.json file that Teams uses, does not exist until Teams launches for the first time. WEM has an option for Create file if it does not exist allowing you to pre-stage the file with the appropriate settings to address first run challenges (Create file if it does not exist).
  • A backup function to backup the JSON file prior to alteration.
  • The JSON Template itself covers 5 settings to get you going, additional can be added as required
    • Auto-start application. True/False
    • Open application in background. True/False
    • On close, keep the application running. True/False
    • Disable GPU hardware acceleration. True/False
    • Enable spell check. True/False

teams_json_action_template

Once you have assigned the action (presumably both the Teams Application action and the Teams JSON action), they will show up as per usual on the endpoint:

teams_client_processing

Teams JSON files are written as expected, including backup configs if selected:

teams_json_processed

The usual log files are used to track processing, along with some additional logging on the endpoint:

  • %UserProfile%\Citrix WEM Agent.log
  • %UserProfile%\Citrix WEM Agent User Session Utility - JsonFileConfigFiltering.log

You can also retrieve status from the WEM console under Monitoring -> Reports

wem_processing_reports

Detail will show what/when the JSON has been processed, or if it is pending an update:

wem_processing_report_detail

Here is Teams launched for the first time in the user profile, pre-configured with the appropriate settings:

teams_client

You will need to be running agent version: 2306.1.0.1 as at the time of writing, and this is currently a WEM Service feature.

You can read more on some Teams considerations from Mr James Rankin below:

Summary

Whilst Teams is still a steaming pile of garbage from a management and performance perspective, the WEM team just made it suck a little bit less to manage in the enterprise. Nicely done.

Don’t forget this article for anything involving Teams in Citrix.