This discussion highlights two PowerShell scripts developed to aid tracking and diagnosing Microsoft Teams SlimCore Optimization specifically within Citrix environments, with potential applicability to Azure Virtual Desktop (AVD), Windows 365 (W365), and VMware Horizon sessions. SlimCore is an optimized media stack used in virtual desktop infrastructure (VDI) scenarios to enhance Teams call performance by offloading audio and video processing to the client side.
The first script provides a simple check to determine if SlimCore Optimization is active by reading a JSON status file stored at a defined path inside the user's local app data directory for Teams. It extracts the current session ID, user name, and evaluates whether the connected stack is set to "remote," indicating that SlimCore (VDI 2.0) mode is active. The script outputs this basic status to the console for quick verification.
The second, more detailed script parses the same JSON file but dives deeper into the telemetry data recorded for Teams VDI sessions. It enumerates all entries in the VdiConnectionInfo array and reports key diagnostic details per entry, including timestamp, Teams version, Citrix Workspace App (CWA) client and plugin versions, client OS version, and various other related software components like bridge version, web client version, VM version, and remote SlimCore version. Additionally, it identifies selected audio and video peripherals, listing the connected microphone, speaker, and camera labels, and summarizes call metadata if present (call ID, direction, type, and duration). These diagnostic outputs provide a comprehensive snapshot of the Teams SlimCore environment and peripheral usage inside the virtual session.
Both scripts rely on the presence of the MSTeams VDI connection info JSON file at a fixed location under the local app data path for the Microsoft Teams UWP package (MSTeams_8wekyb3d8bbwe). The detailed script also includes error handling for missing files or absent relevant entries. These scripts were shared as useful utilities for administrators and support teams troubleshooting Teams media optimization issues in Citrix-hosted or other VDI environments.
The community acknowledged the value of these diagnostics and suggested that monitoring these metrics natively within Citrix or other VDI management tools would be beneficial, especially since SlimCore optimization is relevant across multiple virtualization platforms like AVD and Horizon. The detailed insights provided by the second script can significantly assist in understanding which Teams clients, plugin versions, and peripheral configurations are in use across sessions, aiding in performance tuning and issue resolution.
For administrators intending to leverage these scripts, it is important to note the dependency on the Teams JSON telemetry path, which may vary by Teams version or packaging method. Integration or automation into monitoring frameworks would require scheduled execution with appropriate permissions and potentially parsing or exporting this detailed output for alerting or trend analysis.
More information about Microsoft Teams SlimCore Optimization in VDI environments can be found in Microsoft documentation, as well as best practice guidance in environment-specific knowledge bases such as the Citrix Workspace App docs. ControlUp’s own monitoring platform also offers insights into Teams and Citrix session health, which could be augmented with these scripts for deeper media stack diagnostics.
Read the entire article here...
