Van Beyerenstraat 3, 1816 HA Alkmaar LinkedIn

Microsoft Teams: disable audio/video in Citrix VDI but allow it on all other clients

Teams   · Silas Arentsen

Dit artikel is in het Engels geschreven. Hulp nodig bij dit onderwerp? Neem contact op.

Microsoft Teams is based on user policies, which makes it hard to target specific platforms where you might want to disable specific features. When Ahmed Hamed (LinkedIn) and I started to investigate how to accomplish this, we were unable to find any good documentation or blogs on how to do it.

Our end goal was to accomplish the following:

  1. Disable all resource-intensive features such as audio/video calls, meetings and screen sharing on the Citrix environment
  2. Allow users to still use all other features in Citrix, like chat and sharing files
  3. Allow users to use all features outside of Citrix

To accomplish the above you need to set the following settings in Citrix Policy:

Screenshot

To perform the other steps, we used the new TeamsVdiPolicy PowerShell module

docs.microsoft.com – Teams for VDI: disable audio and video settings

1. Install the newest Microsoft Teams module

Install-Module -Name MicrosoftTeams -Force -AllowClobber

Check if the VDI PowerShell commands are present by running:

Get-Command -Noun *VDI*

If the commands are missing, run the following PowerShell command:

Update-Module -Name MicrosoftTeams -AllowPrerelease
Screenshot

2. Connect to your Teams environment

Connect-MicrosoftTeams

3. Create a CsTeamsVdiPolicy to disable all audio and video inside your VDI environment

New-CsTeamsVdiPolicy -Identity DisableCallsAndMeetingsTrue -DisableCallsAndMeetings $true -DisableAudioVideoInCallsAndMeetings $false

After this, a policy called DisableCallsAndMeetingsTrue is created with the setting DisableCallsAndMeetings set to true (the default is false).

Side note: if you get the error message "Connecting to remote server api.interfaces.records.teams.microsoft.com failed with the following error message: The WinRM client cannot process the request. Basic authentication is currently disabled in the client configuration.", you need to change some registry keys and set the value to 1:

Screenshot

4. Check the created policy

Get-CsTeamsVdiPolicy | FT Iden*, Disable*
Screenshot

5. Assign the policy to a specific user

Grant-CsTeamsVdiPolicy -Identity user@domain.com -PolicyName DisableCallsAndMeetingsTrue

If you want to change the Global policy, run the following command:

Set-CsTeamsVdiPolicy -Identity Global -DisableCallsAndMeetings $true

6. Check if the policy is active for the user (this takes about 10 minutes)

get-CSOnlineUser -identity 'UPN' | FL UserPrincipalName, *vdi*
Screenshot

In the end you will have the following Teams client experience:

  1. Teams About shows nothing about any optimization (HDX optimized)
  2. Teams has greyed-out the audio and video buttons
  3. Joining meetings results in an error that the policy prevents this
Error message after joining a meeting
Error message after joining a meeting
Greyed-out video and audio buttons
Greyed-out video and audio buttons

Thanks to James Rankin for his articles on how to optimize Teams in Citrix!

Based on these articles we did the following

1. Remove autorun

Screenshot

2. Remove the default shortcut

Screenshot

3. Set the default JSON

Screenshot
{
   "appPreferenceSettings": {
      "runningOnClose": true,
      "disableGpu": true,
      "callingMWEnabledPreferenceKey": false
   },
   "theme": "default"
}

4. Set the following Ivanti Workspace user settings

Screenshot

5. With the following exceptions for %appdata%\Microsoft\Teams

Screenshot
Screenshot
Screenshot

Hulp nodig met Teams?

Wij lossen het graag voor u op, snel en blijvend.