Local Scanner Redirection issue in Azure Virtual Desktop while accessing Session host through Bastion authentication instead of RDP

Mirza Irfan Anjum 0 Reputation points
2024-12-21T14:32:45.3133333+00:00

Hi, I am unable to redirect my local USB scanner when I access the session host (Azure VM) through RemoteApp. Please note I am using Bastion authentication instead of direct RDP due to security. The Scanner model is EPSON-DS-1630. When I check Device manager in my Azure VM it is showing below unknown devices. I am not sure that it is related to that scanner or what. However, the drives for this scanner is installed into the Azure VM and I have verified it from control panel.

Device Manger Snap shot.

User's image

I verified usbdevicestoredirect:s:* under Host pool > RDP Properites > Advanced.

User's image

I verified the same under Host pool > RDP Properites > Device redirection.

User's image

Configured Group Policy on my local laptop, still no luck.

User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,172 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mirza Irfan Anjum 0 Reputation points
    2024-12-24T16:35:30.7133333+00:00

    Hi All,

    Just want to share that I managed to resolve this scanner re-direction issue by applying below work around. But after applying these setting Reboot is mandatory and it will work for both either for direct RDP or access session host through Remoteapp.

    Please install the Scanner drivers into the system from where you will be taking direct RDP of VM or accessing the session host from RemoteApp.

    Note: Please note in my environment we have enabled Bastion authentication not the RDP. But below solution worked for both.

    Then follow the below steps.

     

    1. Please open gpedit.msc as administrator, and enable the below local GPO settings on the system from where you will do the RDP of below mentioned VM.
    • Under Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client > RemoteFX USB Device Redirection
    • Enable the policy Allow RDP Redirection of other supported RemoteFX USB devices from this computer

    User's image

    • Under Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection
    • Disable the policy item Do not allow supported Plug and Play device redirection

    User's image

    1. After applied above mentioned local GPO please run gpupdate /force in CMD by running it as admin and restart the system.
    2. Once system is back after reboot.
    3. Plugin the Scanner into one of the USB port in the system from where you will take the RDP of below mentioned VM.
    4. Before login into the VM through mstsc or accessing it from RemoteApp, Click on "Show Option" >> Chose "Local Resources" >> Click on "More">> expend the "other supported plug and play (PnP) devices" and select all the devices shown here, most probably the scanner will be showing here. 
    5. Once you have connected check if a new icon on the Remote Desktop bar appears. This icon allows you to select which local USB devices are in use within the session. User's image 7- Simply click the icon. Then select the USB devices you wish to pass through, click OK. User's image
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.