- Некоторые USB-устройства недоступны с помощью перенаправления USB-данных RemoteFX
- Симптомы
- Причина
- Решение
- Дополнительные сведения
- RemoteFX USB redirected scanner doesn’t start
- Symptoms
- Resolution
- More information
- Some USB devices are not available through RemoteFX USB redirection
- Symptoms
- Cause
- Resolution
- More information
- How to enable USB Redirection in Windows 10 [closed]
- 4 Answers 4
Некоторые USB-устройства недоступны с помощью перенаправления USB-данных RemoteFX
В этой статье описывается, почему определенные USB-устройства недоступны для перенаправления USB remoteFX и как сделать их доступными.
Оригинальная версия продукта: Windows 7 Пакет обновления 1
Исходный номер КБ: 2653326
Симптомы
В системе, в которой включена перенаправление USB-накопителей remoteFX, устройства следующих типов не могут быть перечислены в удаленном рабочем подключении под категорией Другие поддерживаемые usb-устройства с поддержкой remoteFX:
- Принтер
- Аудиозапись/воспроизведение
- Устройство массового хранения (примеры включают жесткие диски, диски CD/DVD-RW, флэш-накопители и считыватели карт памяти)
- Считыватель смарт-карт
- PTP Camera
- MTP Media Player
- Apple iPod/iPod Touch/iPhone/iPad
- КПК Blackberry
- Windows Mobile PDA
- Сетевой адаптер
Кроме того, композитные устройства, содержащие интерфейс устройства, соответствующий любому из этих типов устройств, также не могут быть перечислены в удаленном подключении к рабочему столу в категории Другие поддерживаемые USB-устройства с поддержкой remoteFX.
Причина
По умолчанию устройства в категориях, указанных в разделе «Симптомы», доступны в удаленном сеансе с помощью методов перенаправления устройств высокого уровня. Эти методы перенаправления обеспечивают оптимальную производительность и обратную совместимость устройства в большинстве пользовательских сценариев. Поэтому эти устройства не предлагаются через перенаправление USB RemoteFX.
Решение
Предусмотрен механизм переопределения, позволяющий выборочно включить использование определенных типов устройств в категориях, упомянутых в разделе «Симптомы» с помощью перенаправления USB RemoteFX. Типы устройств, включенные с помощью этого механизма, будут доступны для перенаправления USB remoteFX и будут отображаться в удаленном рабочем подключении под категорией Другие поддерживаемые USB-устройства remoteFX. Чтобы использовать устройство с помощью перенаправления USB remoteFX, необходимо выбрать устройство для удаленного доступа с помощью пользовательского интерфейса удаленного подключения к рабочему столу, строки файлов usbdevicestoredirect:s: RDP или другого метода.
В этот раздел, описание метода или задачи включены действия, содержащие указания по изменению параметров реестра. Однако неправильное изменение параметров реестра может привести к возникновению серьезных проблем. Поэтому следует в точности выполнять приведенные инструкции. Для дополнительной защиты создайте резервную копию реестра, прежде чем редактировать его. Так вы сможете восстановить реестр, если возникнет проблема. Дополнительные сведения о том, как создать и восстановить реестр, щелкните следующий номер статьи, чтобы просмотреть статью в базе знаний Майкрософт: 322756 Как создать и восстановить реестр в Windows
Чтобы включить тип устройства для перенаправления USB remoteFX, выполните следующие действия:
Удалите все экземпляры устройств хранения USB из клиента.
Убедитесь, что устройства хранения USB не могут быть установлены на клиенте с помощью групповой политики.
Определите соответствующий GUID класса интерфейса для типа устройства, который необходимо сделать доступным. Примеры:
Тип устройства | GUID класса интерфейса |
---|---|
Жесткий диск | |
CD-ROM |
Полный список всех классов интерфейса интерфейса устройств, определенных системой, перейдите на следующий веб-сайт Microsoft Developer Network: System-Defined Device Interface Classes
Для устройства с несколькими GUID-интерфейсами класса, которые должны быть доступны с помощью этого механизма, в реестр должен быть добавлен только один соответствующий GUID класса интерфейса.
Добавление следующих GUID-интерфейсов не поддерживается:
- GUID_CLASS_USB_DEVICE
- GUID_CLASS_USB_HOST_CONTROLLER
- GUID_CLASS_USBHUB
- GUID_DEVINTERFACE_USB_DEVICE
- GUID_DEVINTERFACE_USB_HOST_CONTROLLER
- GUID_DEVINTERFACE_USB_HUB
Найдите следующий ключ в реестре клиентского компьютера (то есть компьютер, использующий приложение удаленного подключения к рабочему столу для подключения к другому компьютеру):
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces
В этом ключе используйте следующий формат, чтобы добавить значение guID для каждого класса интерфейса устройства, которое необходимо сделать доступным:
Тип: REG_SZ (String) Name: Любые уникальные строковые данные: GUID класса интерфейса в следующем формате:
Тип: REG_SZ: 100 Data:
Или запустите следующую команду из командной подсказки администратора:
reg add «HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces» /v 100 /t REG_SZ /d <53f56308-b6bf-11d0-94f2-00a0c91efb8b>/f
Перезапустите удаленное подключение к рабочему столу, если оно запущено в настоящее время.
Дополнительные сведения
Пошаговые инструкции по настройке развертывания удаленного USB-интерфейса RemoteFX для Windows 7 SP1 перейдите на следующий веб-сайт Microsoft Technet:
Настройка перенаправления USB-устройств с помощью пошагового руководства Microsoft RemoteFX
Дополнительные сведения о перенаправлении USB remoteFX можно получить в следующей статье в блоге удаленного рабочего стола:
Введение перенаправления USB Microsoft RemoteFX: часть 3
RemoteFX USB redirected scanner doesn’t start
This article helps to fix an issue in which RemoteFX USB redirected scanner can’t open.
Original product version: В Windows Server 2012 R2, Windows 10 — all editions
Original KB number: В 3125295
Symptoms
Consider the following scenario:
- You prepare a Windows 8.1 Pro x64-based computer as a Remote Desktop (RDP) client and a Windows Server 2012-based or a Windows Server 2012 R2 Datacenter-based server as an RDP server.
- You connect a USB scanner to the Windows 8.1-based computer.
- You install a driver for the scanner on the server.
- On the Windows 8.1-based computer, you enable the Allow RDP redirection of other supported RemoteFX USB devices from this computer in the Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client\RemoteFX USB Device Redirection Group Policy setting.
- On the Windows Server 2012 R2-based server, you enable the Remote Desktop Session Host and Desktop Experience features.
- You log on to the RDP session by using RemoteFX USB redirection from the Windows 8.1-based RDP client to the Windows Server 2012 R2-based RDP server.
- In that session, you open the Devices and Printers window.
- You right-click the icon for the USB scanner and then click Start scan.
In this scenario, the scan doesn’t start, and no error message is displayed.
This issue occurs when the driver calls the CreateFile function without setting the FILE_FLAG_SESSION_AWARE flag. When the issue occurs, the CreateFile function fails with an E_ACCESSDENIED (0x80070005) error.
Resolution
If you’re the driver developer, you should set the FILE_FLAG_SESSION_AWARE flag in the dwFlagsAndAttributes parameter of the CreateFile function to fix this issue. Otherwise, you should contact the scanner manufacture for the latest driver that fixes the issue.
More information
Although RemoteFX USB Redirection for Windows 7 SP1 was implemented for client SKUs with a single session, RemoteFX USB Redirection for Windows Server 2012 R2 supports redirection from multiple clients and provides session isolation for redirected devices. Therefore, users will see only USB devices that belong to them. When USB device redirection is enabled in RDS or MultiPoint, USB devices are assigned to the particular session into which they’ve been redirected. Only user-mode code that’s running in that same session can access these devices.
The default behavior of the I/O Manager is to deny access when a service that’s running in session 0 tries to open one of these devices unless the service does this by passing the FILE_FLAG_SESSION_AWARE flag to CreateFile. The theory here is that when developers updated their services to use this flag to open devices, they also added new functionality to make sure that their services restricted access to those devices to any other apps from other sessions that might also be using the service (for example, if the service is a COM server).
Some USB devices are not available through RemoteFX USB redirection
This article describes why specific USB devices aren’t available for RemoteFX USB redirection, and how to make them available.
Original product version: В Windows 7 Service Pack 1
Original KB number: В 2653326
Symptoms
On a system where RemoteFX USB redirection is enabled, devices of the following types may not be listed in Remote Desktop Connection under the Other Supported RemoteFX USB devices category:
- Printer
- Audio Recording/Playback
- Mass Storage Device (examples include hard drives, CD/DVD-RW drives, flash drives, and memory card readers)
- Smart Card Reader
- PTP Camera
- MTP Media Player
- Apple iPod/iPod Touch/iPhone/iPad
- Blackberry PDA
- Windows Mobile PDA
- Network Adapter
Additionally, composite devices that contain a device interface that corresponds to any of these device types also may not be listed in Remote Desktop Connection under the Other Supported RemoteFX USB devices category.
Cause
By default, devices in the categories that are mentioned in the «Symptoms» section are accessible in the remote session by using high-level device redirection methods. These methods of redirection enable optimal performance and backward compatibility of the device in the majority of user scenarios. Therefore, these devices are not offered through RemoteFX USB redirection.
Resolution
An override mechanism is provided to selectively enable the use of specific device types in the categories that are mentioned in the «Symptoms» section through RemoteFX USB redirection. Device types that are enabled by this mechanism will be made available for RemoteFX USB redirection and will appear in Remote Desktop Connection under the Other Supported RemoteFX USB devices category. In order to use the device through RemoteFX USB redirection, the device must be selected for remote access by using the Remote Desktop Connection UI, the «usbdevicestoredirect:s: RDP file string, or another method.
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows
To enable a device type for RemoteFX USB redirection, follow these steps:
Delete all instances of USB storage devices from the client.
Make sure that USB storage devices can’t be installed on the client through Group Policy.
Identify the appropriate interface class GUID for the device type that you want to make available. Examples are as follows:
Device type | Interface class GUID |
---|---|
Hard Drive | |
CD-ROM |
For a complete listing of all system-defined device interface classes, please go to the following Microsoft Developer Network website: System-Defined Device Interface Classes
For a device that has multiple interface class GUIDs that are to be made available through this mechanism, only one corresponding interface class GUID has to be added to the registry.
The addition of the following GUIDs is not supported:
- GUID_CLASS_USB_DEVICE
- GUID_CLASS_USB_HOST_CONTROLLER
- GUID_CLASS_USBHUB
- GUID_DEVINTERFACE_USB_DEVICE
- GUID_DEVINTERFACE_USB_HOST_CONTROLLER
- GUID_DEVINTERFACE_USB_HUB
Locate the following key in the registry of the client computer (that is, the computer that is using the Remote Desktop Connection application to connect to another computer):
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces
Under this key, use the following format to add a value for each device interface class GUID that you wish to make available:
Type: REG_SZ (String) Name: Any unique string Data: The interface class GUID, in the following format:
Type: REG_SZ Name: 100 Data:
Or run the following command from an Administrator command prompt:
reg add «HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces» /v 100 /t REG_SZ /d <53f56308-b6bf-11d0-94f2-00a0c91efb8b>/f
Restart Remote Desktop Connection if it is currently running.
More information
For step-by-step instructions on configuring an evaluation deployment of RemoteFX USB redirection for Windows 7 SP1, go to the following Microsoft Technet website:
Configuring USB Device Redirection with Microsoft RemoteFX Step-by-Step Guide
For more information about RemoteFX USB redirection, review the following article on the Remote Desktop Services Blog:
Introducing Microsoft RemoteFX USB Redirection: Part 3
How to enable USB Redirection in Windows 10 [closed]
Want to improve this question? Update the question so it’s on-topic for Stack Overflow.
Closed 1 year ago .
My OS is Windows 7 and I have a remote host Windows 8.1 that I can use RDP to redirect local usb device to windows 8.1. But the redirect USB doesn’t work in windows 10 host. How can I enable it in windows 10?
4 Answers 4
I too have had problems using RemoteFX USB Redirection on a Windows 7 Client to a remote host on Azure running Windows 10, while the same machine configuration would successfully redirect USB to a Windows 8.1 Azure VM.
To be clear I’ve not had issues with the USB redirection for common devices (Flash drives, Printers, etc) that are supported with the vanilla setup of Remote Desktop. This type of USB redirection, for example, allowing me to see a Flash drive that I plug in to my Windows 7 client is working perfectly for me as I can see it in Explorer in the Azure VM.
A comparison of standard RDP redirection and RemoteFX redirection is detailed in this blog entry.
My particular USB redirection problem relates to the classes of devices not handled by the basic RDP high-level redirection, and for that I’ve enabled RemoteFX USB redirection on previous releases of Windows. When this is functioning correctly the computer icon () appears in the Remote Desktop title bar allowing me to select which device should be redirected to the VM.
Titlebar when RemoteFX USB Redirection is working
Following the instructions on numerous web resources for enabling RemoteFX USB redirection worked for me for earlier OS versions (i.e. Windows 8.1 on a Azure VM), but would not work for any Windows 10 VM I created. The titlebar stubbornly remained without the RemoteFX USB redirection feature.
Titlebar when RemoteFX USB Redirection was not working
I finally stumbled across this thread which solved my problem.
It seems there is one more step needed on a Windows 10 host compared to previous OS versions and that is:
Run gpedit.msc on the target VM (the target windows 10 Virtual Machine) to start the Group Policy Editor . gpedit.msc can be typed in from a run dialog (use WinKey + R ) if you have administrator access, or start an elevated CMD.EXE and type gpedit.msc from the command line.
Locate the item Computer Configuration \ Administrative Templates \ Windows Components \ Remote Desktop Services \ Remote Desktop Session Host \ Device and Resource Redirection\ Do not allow supported Plug and Play device redirection from the treeview of the Group Policy Editor .
Bizarrely set this item to Disabled .
Run gpupdate /force from an elevated command prompt.
At least disconnect RDP session and connect again, if this does not work reboot target VM.