Forum Discussion
(WVD) Windows Virtual Desktop USB Redirection Full
Hello,
I was in a similar boat as you setting up a WVD terminal environment which needed foot pedals to redirect for legal dictations that many users use.
So far, I was able to get the foot pedals to redirect successfully to our WVD.
We ran the powershell command for usb devices with the value devicestoredirect:s:*
There are some additional powershell commands here to check out.
https://docs.microsoft.com/en-us/azure/virtual-desktop/customize-rdp-properties
We additionally configured RemoteFX USB redirection on both the server AND the client computer.
From there, force out the gpudate, and reboot for good measure. When I logged back into the WVD, we were able to pull up a menu with local USB connected devices that we can connect.
The footpedal still needs to be tested, but I wanted update my progress.
- toby skerrittMay 19, 2020Copper ContributorHi, thanks for this useful information.
Where you wrote:
"We ran the powershell command for usb devices with the value devicestoredirect:s:*"
Could you please provide the full powershell command you used to enable this device?
Thanks.- otde5000May 19, 2020Copper Contributor
In Azure, using the powershell console I used:
Update-AzWvdHostPool -ResourceGroupName <resourcegroup> -Name <hostpoolname> -CustomRdpProperty devicestoredirect:s:*
Any time a new resource group is created with intentions of having a host pool, we need to run this command and reboot.
Client Side GPO (on a non domain joined laptop, by the way):
Server Side GPO:
- toby skerrittMay 20, 2020Copper Contributor
- AndrewPhebusMay 19, 2020Brass Contributor
otde5000 - Thank you! This now works for me as well.
toby skerritt- the PowerShell i used to set my custom RDP properties was this:
#get pool settings before you change it Get-AzWvdHostPool | select name,customrdpproperty #set Variable for pool settings $rdpproperty = 'audiocapturemode:i:1;audiomode:i:0;drivestoredirect:s:;redirectclipboard:i:1;redirectcomports:i:0;redirectprinters:i:1;redirectsmartcards:i:0;screen mode id:i:2;autoreconnection enabled:i:1;redirected video capture encoding quality:i:0;camerastoredirect:s:*;devicestoredirect:s:*' #update 6 pools with the setting Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool1 -ResourceGroupName WVD-W7-Pool1 Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool2 -ResourceGroupName WVD-W7-Pool2 Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool3 -ResourceGroupName WVD-W7-Pool3 Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool5 -ResourceGroupName WVD-W7-Pool5 Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool6 -ResourceGroupName WVD-W7-Pool6 Update-AzWvdHostPool -CustomRdpProperty $rdpproperty -Name WVD-W7-Pool8 -ResourceGroupName WVD-W7-Pool8 #confirm setting took Get-AzWvdHostPool | select name,customrdpproperty
To anyone trying to set this up via GPO these settings worked for me:
Set on the Windows 7 Enterprise WVD VM:
set on client computer or Win10IOT thin client:
Also on the client I set a group policy preference to make it auto-connect the pedal in the session:
Human Interface Devices is {745a17a0-74d3-11d0-b6fe-00a0c90f57da} so if you want them selected automatically you can set this key.
All device classes can be found here:
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/system-defined-device-setup-classes-available-to-vendors
And this article was helpful:
https://support.microsoft.com/en-us/help/2653326/some-usb-devices-are-not-available-through-remotefx-usb-redirection