VMFS Recovery™Recover data from damaged or formatted VMFS disks or VMDK files
VMFS Recovery™
Recover data from damaged or formatted VMFS disks or VMDK files

Hyper-V USB Passthrough and How Does It Work

Here you will find out:

  • what is Hyper-V USB passthrough
  • what do you need to use Hyper-V USB passthrough
  • when DiskInternals can help you

Are you ready? Let's read!

About Hyper-V USB passthrough

There are situations when you may need to connect to physical resources, such as a USB device, inside a virtual machine. For this purpose, Hyper-V USB Passthrough was developed, thanks to which you can copy and paste any files to and from a virtual machine. In order to use Hyper-V USB passthrough on Windows 10, you need to know the basic approaches to this:

  • As an option, you can turn on the advanced session mode.
  • You can also open a Remote Desktop Protocol (RDP) session.

The following two options for using Hyper-V USB passthrough require the installation of certain software; namely, the installation of network or software solutions for USB drives.

What do you need to use Hyper-V USB passthrough

The following are the prerequisites for implementing Hyper-V USB:

  • Be sure to enable the advanced session mode policy and advanced session mode settings. Therefore, the VM should be a second-generation model, since the advanced session mode is supported only on second-generation virtual machines.
  • Supported operating systems on the computer include Windows 8.1, Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows Server 2012, Windows 8.
  • The virtual machine must be running Windows Server 2016, Windows Server 2012 R2, Windows 8.1, or Windows 10.
  • On the VM, Remote Desktop Services must be activated.

About host-level Hyper-V USB passthrough

This process is not as simple as in VMware, so you have to work at it a little.

In general, it’s better, of course, to use a USB flash drive only just for a one-time file transfer.

Insert your USB drive into the Hyper-V server. Thus, the host operating system recognizes this USB drive as available storage. However, the whole problem is that only a USB stick can have direct access to only one OS. In this case, you just have to disconnect the USB drive so that it becomes inaccessible to the operating system.

This can be done using the DISKMGMT.MSC command on the server command line. In the new window, find your drive and right-click on it. Now activate the offline mode to take the USB drive offline.

After that, open Hyper-V Manager. Select your VM with the right mouse button and select the “Settings” tab. Next, click on the SCSI controller, and then on “Hard disk”. Click on the “Add” button and select “Physical Hard Disk”. From your list, select your USB drive.

After these steps, the USB device will become available for use in the virtual machine.

Hyper-V USB passthrough: two connection cases

  1. 1. The first option is to remotely connect to the desktop.

Download the VM and go to the “Control Panel”. Here, click on "System and Security" and then select "Allow Remote Access." In the next window, enable the “Allow remote connections to this computer” option and click “OK”.

Now turn on the RDP session and connect to the USB device.

Here, you will need the MSTSC.EXE command, which will open the Remote Desktop Connection window. In this window, in the "Show Settings" tab, select "Local Resources" and then the "Advanced" button. Check the box next to the “Plug and Play device” category and click OK. Next, click on the Connect button.

  1. 2. The second option is an advanced session mode.

If you have Windows 10 or Windows 8.1, then Hyper-V USB passthrough will be available by default. If you have Windows Server 2012 R2 or Windows Server 2016, you will have to configure it manually.

To do this, connect to the VM and start Hyper-V Manager. Next, right-click the hostname and select “Hyper-V Settings”. In the “Server” tab, click “Advanced Session Policy” and select the option "Allow advanced session mode". Then click “OK”.

After these steps, determine the local resources to which you want to connect (these can be local drives, printers, audio devices, and USB drives, etc.). As soon as you open your virtual machine, a configuration window will appear, where you will need to select “Show options”. Next, go to the “Local Resources” section and click on “Advanced”.

Also, check the box “Other supported devices Plug and Play (PnP)” and then click on “OK”.

RAID Recovery: the solution for the array safety

DiskInternals RAID Recovery can recover all possible data stored on damaged and inaccessible hard drives in RAID array. It also automatically checks the status of the array, after which, recovery of available files takes place. The application also offers a free preview of these files before you need to purchase a license.

To use the program, first, download and install it, and then open it on your computer.

If necessary, connect via SSH or proceed to the next step.

Open the disk with the left mouse.

After the scanning process, find the necessary files, then mount them.

Check the file's integrity.

To complete the process, buy a license on the site for this product and complete the export of data to any storage device.

If there is an issue with file recovery on Hyper-V, do not hesitate and communicate with DiskInternals support.

Related articles

FREE DOWNLOADVer 4.9, Win BUY NOWFrom $699