Fix AVD Teams Optimization Stopped Working after Windows in-place Upgrade Azure Virtual Desktop

AVD Teams optimization (AVD media optimization) is important for all production implementation. Otherwise, the users start complaining about the performance issues. Also, the user experience with Teams won’t be great without the Teams application’s AVD media optimization.

Recently, I have seen a performance impact on the AVD VM, especially with Teams. The Teams application was not behaving properly 🙂 Well, there were significant delays, screen sharing issues, etc… I started checking what happened and what was the change I made to my AVD instance.

After a while, I realized that the AVD session host got upgraded to Windows 10 2004. I used Microsoft Endpoint Manager (MEM) Intune to update the operating system of the session host. I have already given an overview Windows 10 upgrade process using WUfB (Windows Update for Business) in the AVD management with Intune post.

Related Post – 63 Episodes of Free Intune Training for Device Management Admins

Patch My PC

How to Verify Teams is AVD Media Optimized or not?

You can check whether the Teams application is optimized for AVD using the following method.

  • Open Teams application.
  • Click on the Drop-Down arrow near the profile picture.
  • Click on About.
  • Click on Version.
  • Now, you would confirm whether the Teams is optimized for AVD media or not, as you can see in the below screen capture.
    • You have Microsoft Teams Version <version number> AVD Media Optimized.
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade

AVD Media Optimization Issue after Windows In-place Upgrade?

We have identified that the Teams performance issue started after Windows 10 in-place upgrade. We also noticed that the Teams application optimized for AVD is not working. The AVD, as mentioned earlier, Media Optimized banner, disappeared from the Teams application.

I started checking the Microsoft docs to find out the details about Team optimization for AVD. The Remote Desktop WebRTC redirector service is mandatory for the AVD optimization of Microsoft Teams.

I noticed that the Remote Desktop WebRTC redirector service application is available under “Add/Remove programs (appwiz.CPL)“. I opened services.msc to check whether the Remote Desktop WebRTC redirector service is running or not. And noticed that the service is missing!

Adaptiva

Strange! If that’s even possible (that’s what I was thinking).

AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade

Fix Remote Desktop WebRTC redirector service Missing Issue

Let’s try to fix the Remote Desktop WebRTC redirector service Missing Issue. Well, the manual fix was pretty easy! So AVD Teams Optimization should work as expected after the following activity.

  • Launch Command prompt with Administrative permissions from problematic Windows 10 VM.
  • Type in Appwiz.CPL to launch add remove programs.
  • Search for “Remote Desktop WebRTC redirector service
  • Right-click on the above-mentioned application and select Uninstall to remove the application.
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade
  • Once uninstalled successfully, download the Remote Desktop WebRTC Redirector Service.
  • Install the Remote Desktop WebRTC Redirector service application on to WVD Windows 10 session host.
  • Restart the Session host.

NOTE! – We have implemented an automatic way of fixing the issue with a custom script to identify whether the “Remote Desktop WebRTC Redirector service” service is running or not. If not running, reinstall the app and fix the issue. We deployed this solution via MEM Intune.

AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade
AVD Teams Optimization Stopped Working after Windows 10 in-place Upgrade

Resources

Author

Anoop is Microsoft MVP! He is a Solution Architect in enterprise client management with more than 20 years of experience (calculation done in 2021) in IT. He is a blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. E writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc…

3 thoughts on “Fix AVD Teams Optimization Stopped Working after Windows in-place Upgrade Azure Virtual Desktop”

  1. I think I found the problem. There is a versioning error in the keyfile for the sole component in the MSI package. The keyfile is msrdcwebrtcsvc.exe in component {B0E73BD0-9627-4D7B-B38D-BA1E7B5F9E12}. It has the following versions in the FILE table of the MSI
    MSI ProductVersion Version of MsRdcWebRTCSvcExeFile in FILE table of MSI
    0.11.0.0 10.0.19590.0
    1.0.2006.11001 10.0.19590.1000 (higher)
    1.0.2106.14001 10.0.10011.16384 (lower)
    1.1.2110.16001 10.0.10011.16384 (same)
    So when either of the last two versions upgrades from either of the first two you see this in the log:
    “Disallowing installation of component: {B0E73BD0-9627-4D7B-B38D-BA1E7B5F9E12} since the same component with higher versioned keyfile exists”
    But by the end of the install, the file has actually been removed leaving an ARP entry for the new version but no files and, obviously, no service.
    If you upgrade from that to 1.1.2110.16001 (when the keyfile version is unchanged), the component is processed and the current file is removed by a FileRemove action and replaced with the one from the newer MSI by a FileCopy action (the file in question has the same version in the File table of the MSI and the properties of the file itself but is, in fact, newer (and different).
    To work around this, you need to uninstall the two oldest versions of the WebRTC MSI if either is present before installing either of the two newer versions. Uninstall command lines for all four versions (at the time of writing) follow. If you always run the first two commands before installing a later version (and ignore the 1605 if the older products are absent then the newer install should be fine:

    ::version list and release dates: https://docs.microsoft.com/en-us/azure/virtual-desktop/teams-on-avd#latest-websocket-service-versions
    ::0.11.0.0 05/29/2020
    msiexec /x {8612BEBC-C086-4565-AC3B-C9AB0FBBE44D} /norestart /l*v “%temp%\MS_WebRTC_uninstall_0.11.0.0.log” /qn
    ::1.0.2006.11001 07/28/2020 this version was widely used (during early stages of AVD in AXA)
    msiexec /x {FB41EDB3-4138-4240-AC09-B5A184E8F8E4} /norestart /l*v “%temp%\MS_WebRTC_uninstall_1.0.2006.11001.log” /qn
    ::1.0.2106.14001 07/29/2021 this version was also packaged in AXA
    msiexec /x {FF1E2E30-ED42-466D-949D-8431FAC4F665} /norestart /l*v “%temp%\MS_WebRTC_uninstall_1.0.2106.14001.log” /qn
    ::1.1.2110.16001 10/15/2021
    msiexec /x {0A449047-740D-47F9-ACDA-B4C92C7BA685} /norestart /l*v “%temp%\MS_WebRTC_uninstall_1.1.2110.16001.log” /qn

    Reply
      • I see they have released a newer version (1.4.2111.18001) which updates the file version to a level which will successfully upgrade from any older version now

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.