如何在Windows 10中启用USB重定向

Eag*_*gle 13 usb window

我的操作系统是Windows 7,我有一个远程主机Windows 8.1,我可以使用RDP将本地USB设备重定向到Windows 8.1.但重定向USB在Windows 10主机中不起作用.如何在Windows 10中启用它?

Rhy*_*hys 25

RemoteFX USB Redirection在运行Windows 10的Azure上使用Windows 7客户端到远程主机时遇到问题,而同一台计算机配置会成功将USB重定向到Windows 8.1 Azure VM.

为了清楚起见,我没有遇到通过远程桌面的vanilla设置支持的常见设备(闪存驱动器,打印机等)的USB重定向问题.例如,这种类型的USB重定向允许我看到我插入Windows 7客户端的闪存驱动器对我来说非常合适,因为我可以在Azure VM中的资源管理器中看到它.

博客文章详细介绍了标准RDP重定向和RemoteFX重定向的比较.

我特定的USB重定向问题与基本RDP高级重定向无法处理的设备类有关,为此我在以前版本的Windows上启用了RemoteFX USB重定向.当这个功能正常我得到了计算机图标(计算机图标 )出现在远程桌面标题栏中,允许我选择应将哪个设备重定向到VM.

标题栏

当RemoteFX USB重定向工作时的标题栏

按照许多Web资源上的说明启用RemoteFX USB重定向适用于早期操作系统版本(即Azure VM上的Windows 8.1),但不适用于我创建的任何Windows 10 VM.标题栏固执地没有RemoteFX USB重定向功能.

在此输入图像描述

当USB重定向功能不起作用时,Windows 10上的标题栏

我终于偶然发现了解决我问题的这个帖子.

与以前的操作系统版本相比,Windows 10主机上还需要一个步骤,那就是:

  1. 运行gpedit.msc在目标VM(目标Windows 10虚拟机)启动Group Policy Editor.如果您具有管理员访问权限,则可以gpedit.msc从运行对话框(使用CMD.EXE)中键入,或者从命令行启动提升gpedit.msc并键入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.

  2. Group Policy Editor从树的视图中找到项目Disabled.

  3. 将此项目奇怪地设置为 gpupdate /force

  4. RemoteFX USB Redirection从提升的命令提示符运行

  5. 至少断开RDP会话并再次连接,如果这不起作用重启目标VM.

  • 这并不奇怪,因为您将规则“不允许”设置为“禁用”,这意味着“允许”。但是,这对我来说不起作用,两台机器上都是Win10。不过还是点赞吧;) (2认同)

Fre*_*ers 7

在物理 Windows 机器和远程主机上执行

所有编辑都在以下内容下:

Computer Configuration \ Administrative Templates \ Windows Components \ Remote Desktop Services \ >>
Run Code Online (Sandbox Code Playgroud)

GP编辑:

  • 我还在“允许其他受支持的 RemoteFX USB 设备从此计算机进行 RDP 重定向”中将“管理员”更改为“管理员和用户”

Remote Desktop Connection Client \ RemoteFX USB Device Redirection \ Allow RDP redirection of other supported RemoteFX USB devices from this computer (Enabled)

Remote Desktop Session Host \ Remote Session Environment \ RemoteFX for Windows Server 2008 R2 \ Configure RemoteFX (Enabled)

Remote Desktop Session Host \ Connections \ Allow users to connect remotely by using Remote Desktop Services (Enabled)

Remote Desktop Session Host \ Device and Resource Redirection\ Do not allow supported Plug and Play device redirection (Disabled) 

gpupdate /force in elevated CMD Prompt and reboot
Run Code Online (Sandbox Code Playgroud)

  • 我可以确认这些设置在 Windows 10 主机和客户端之间有效。如果客户端策略仅应用于客户端,主机策略仅应用于主机,则无法正常工作。也许它不需要两台机器上的所有设置,但我没有投入更多时间来测试这一点。我的重定向 USB 设备是 3Dconnexion SpaceExplorer,用作 CAD 的 3D 鼠标。请注意,从“管理员”更改为“管理员+用户”是指“远程桌面连接客户端\RemoteFX USB设备重定向\所有RDP重定向”。 (2认同)