Enable Audio and Video Redirection for Windows Virtual Desktop

Looking to let users leverage Teams through Windows Virtual Desktop (WVD)? No problem! Let’s run some PowerShell commands against our WVD tenant:

Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"  
Set-RdsHostPool -TenantName <tenantname> -Name <hostpoolname> -CustomRdpProperty "audiomode:i:0;audiocapturemode:i:1; camerastoredirect:s:*;devicestoredirect:s:*" 

(This does assume you have the WVD PowerShell and Az modules installed, which were also required for standing up WVD)

You can use this command to set any of the RDP settings, which can be found here: https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files. For example, if you’re looking to disable clipboard access as well, the command would be:

Set-RdsHostPool -TenantName <tenantname> -Name <hostpoolname> -CustomRdpProperty 
"audiomode:i:0;audiocapturemode:i:1;camerastoredirect:s:*;devicestoredirect:s:*;redirectclipboard:i:0" 

Once that’s configured, if you open the Remote Desktop client (download for Windows 7/10 here) you will see Remote Audio and Camera working in Teams:

Teams through WVD

Now – you may notice that through the HTML5 WVD connection, there is no microphone input device under settings:

No microphone in HTML5 WVD

This is because, unfortunately, HTML5 does not support Audio Redirection:

Supportability of HTML5

So make sure you keep on eye out on which settings are supported! The supportability is listed on the same site as the settings. Happy deploying! 💻

You may also like...

6 Responses

  1. Mehboob Ahmad says:

    Do we need take some other action for the updated settings to take effect? I have executed the command successfully and rebooted the virtual machine but still no audio redirection.

  2. Eva says:

    OMG!!! I so f*cking exited to test

  3. Eva says:

    Same for me.

  4. Eva says:

    Aaaaaaaa!!! It’s working! You are the best! It’s like Christmas

  5. Dennis Dowhy says:

    fyi audio redirection does work, but it’s disabled by default in windows 10 group policy. you need to have ‘Allow audio recording redirection’ enabled in group policy (steps below). Then in RDP settings window for local resources, click Settings under Remote Audio, then make sure settings are ‘Record from this computer’ and ‘Play on this computer’.

    Editing group policy:
    1) Click Start > Run, type gpedit. …
    2) Expand Local Computer Policy/Computer Configuration/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host.
    3) In Device and Resource redirection, double-click Allow Audio and Video Playback Redirection. …
    4) Click Enabled, and then click OK. (might need to reboot after this change? can’t remember)

Leave a Reply

Your email address will not be published. Required fields are marked *