Enable Audio and Video Redirection for Windows Virtual Desktop
Microsoft recently updated Teams to make it even easier to use audio/video within WVD! While the blog post below may still be useful, check out our more recent post on Enabling Audio and Video for Microsoft Teams on Windows Virtual Desktop using Media Optimizations. If you prefer using Audio & Video Redirection instead of Media Optimizations, you can now even configure that without PowerShell (if you created your tenant via the Azure Portal). Check out that post here: Edit Windows Virtual Desktop Properties in the Azure Portal.
Looking to let users leverage Teams through Windows Virtual Desktop (WVD)? No problem! To enable Audio/Video redirection, we’ll need to set the following custom RDP properties:
audiocapturemode:i:1enables audio capture from the local device and redirects audio applications in the remote session.
audiomode:i:0plays audio on the local computer.
camerastoredirect:s:*redirects all cameras.
To do this, all we need to do is run two 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:
Now – you may notice that through the HTML5 WVD connection, there is no microphone input device under settings:
This is because, unfortunately, HTML5 does not support Audio Redirection:
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! 💻