Passthrough USB devices in Hyper-V using USB Redirector

Lack of USB support in Hyper-V is a major concern for many users who want use USB devices in their virtual machines. This greatly limits useability for solutions based on Hyper-V.

Many commercial software products use USB dongles for their licensing needs. They won't even start if dongle is not plugged. Thus you can not use them on Virtual Machine running as guest on Hyper-V host. There are many other softwares that require specific USB devices for their operation.

There are two posible solutions that allow to overcome this problem:

  • Buy a separate hardware Network USB Hub, which is not really a scalable solution.
  • Use software solution to pass-through USB devices from Hyper-V host to virtual machines.

USB Redirector is a software solution that allows to pass-through USB devices to virtual machines running on Hyper-V Host. And it not only redirects USB devices connected to Hyper-V host machine, but also devices connected to any computer on your LAN or Internet.

Sometimes it is quite tricky task to install additional software on Microsoft Hyper-V Server, as it is based on Windows Server Core that does not provide any interface for a user, except command line. Below we will provide instructions on how to install USB Redirector using a command line interface of Hyper-V Server. Here are the steps that need to be accomplished:

  1. Install USB Redirector on Hyper-V Server host
  2. Start USB Redirector and share USB devices
  3. Setup Windows Firewall on Hyper-V Server host if required
  4. Install USB Redirector Client on virtual machines and use it to connect the shared devices

Before You Begin

You need to have a second PC which will be used to prepare a USB Redirector installer for running on Hyper-V host machine.

So, let's start! At first you should logon to your Hyper-V Server locally or through Remote Desktop and switch to Console window.

Installing USB Redirector on Hyper-V Server

Before you can install USB Redirector, you need to transfer usbredirector-setup.exe installer file from USB Redirector package to the Hyper-V Server machine and then start it. You can get the file on to the server through one of the following ways:

  • Download and extract the installer from our website directly on Hyper-V Server.
  • Write installer to USB Flash Drive, attach it to the Hyper-V Server and start the installer from flash.
  • Burn the installer to CD or DVD disk, insert it into your Hyper-V Server and start installer from CD.
  • Put installer to the network share and access it from your Hyper-V Server.

Installing From Website

For Windows Server 2016 or newer, execute the following command in console. It will automatically download, extract and start the USB Redirector installer:

powershell -command "& { Invoke-Webrequest -OutFile $env:TEMP\ -UseBasicParsing; Expand-Archive $env:TEMP\ -DestinationPath $env:TEMP -Force; start $env:TEMP\usbredirector-setup.exe }"

Installing From USB Flash

On another computer, write usbredirector-setup.exe file to USB Flash drive. Insert the USB Flash into USB port on your Hyper-V Server and execute the following command in console:


Where E: is your USB Flash drive letter. If you do not know exactly which letter is used for your USB Flash, you can try several letters starting from A or type wmic logicaldisk get caption,description command to display all drives.

Installing From CD or DVD

Use your favorite disk burning tool to burn the usbredirector-setup.exe file to a disk. Insert this disk into CD/DVD drive on your Hyper-V Server and execute the following command in console:


Where D: is your CD/DVD drive letter. If you do not know exactly what is your CD/DVD drive letter, you can try several letters starting from A or type wmic logicaldisk get caption,description command to display all drives.

Installing From Network Share

Put usbredirector-setup.exe to a shared folder on your computer. Then connect this share as network drive on Hyper-V Server with help of NET USE command:


Where \\MY-WORK-PC\Share is a shared folder path in your LAN. This command will attach your shared folder as a network drive X: on Hyper-V Server. You may be prompted to enter a password to access the share.

To start installer, type the folowing command in console and press Enter:


Starting USB Redirector

After you finished installing USB Redirector, type the following command in console and press Enter to start it:

"C:\Program Files\USB Redirector\usbredirector.exe"

Assuming that USB redirector was installed in "C:\Program Files\USB Redirector".

Setting up Windows Firewall

Normally, USB Redirector would automatically set up firewall rules during installation. If for some reason it did not do this, please use the following command on Hyper-V Server host:

netsh advfirewall firewall add rule name="Allow incoming USB Redirector connections" dir=in protocol=tcp localport=32032 action=allow

This command will allow USB Redirector to accept connections from virtual machines. For more advanced firewall configuration see Netsh command documentation.

Installing USB Redirector Client on Virtual Machines

Installation of USB Redirector Client on virtual machines is no different from installing it on a normal computer. You just have to upload an installation package to VM and start the installer.

Got Any Questions?

Please see USB Redirector product page for more information on how to use it and feel free to try the trial. If you still got any questions, please feel free to contact us.