Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
141 lines (78 sloc) 5.93 KB
title description ms.prod ms.service manager ms.technology ms.tgt_pltfrm ms.topic ms.assetid author ms.author ms.date
Use local resources on Hyper-V virtual machine with VMConnect
Describes the requirements for using local resources with VMConnect
windows-server-threshold
na
dongill
compute-hyper-v
na
article
18eface5-7518-4c6b-9282-93e2e3e87492
KBDAzure
kathyDav
12/06/2016

Use local resources on Hyper-V virtual machine with VMConnect

Applies To: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2

Virtual Machine Connection (VMConnect) lets you use a computer's local resources in a virtual machine, like a removable USB flash drive or a printer. Enhanced session mode also lets you resize the VMConnect window. This article shows you how configure the host and then give the virtual machine access to a local resource.

Enhanced session mode and Type clipboard text are available only for virtual machines that run recent Windows operating systems. (See Requirements for using local resources, below.)

For virtual machines that run Ubuntu, see Changing Ubuntu Screen Resolution in a Hyper-V VM.

Turn on enhanced session mode on a Hyper-V host

If your Hyper-V host runs Windows 10 or Windows 8.1, enhanced session mode is on by default, so you can skip this and move to the next section. But if your host runs Windows Server 2016 or Windows Server 2012 R2, do this first.

Turn on enhanced session mode:

  1. Connect to the computer that hosts the virtual machine.

  2. In Hyper-V Manager, select the host's computer name.

    Screenshot that shows a host computer name listed under Hyper-V Manager in the left pane.

  3. Select Hyper-V settings.

    Screenshot that shows the Hyper-V settings option under Actions in the right pane.

  4. Under Server, select Enhanced session mode policy.

    Screenshot that shows the Enhanced session mode policy option under the Security section.

  5. Select the Allow enhanced session mode check box.

    Screenshot that shows the Allow enhanced session mode checkbox for Enhanced session mode policy.

  6. Under User, select Enhanced session mode.

    Screenshot that shows the Enhanced session mode option under the User section.

  7. Select the Allow enhanced session mode check box.

  8. Click Ok.

Choose a local resource

Local resources include printers, the clipboard, and a local drive on the computer where you're running VMConnect. For more details, see Requirements for using local resources, below.

To choose a local resource:

  1. Open VMConnect.

  2. Select the virtual machine that you want to connect to.

  3. Click Show options.

    Screenshot that calls out Show options on the bottom left of the dialog box.

  4. Select Local resources.

    Screenshot that calls out the Local resources tab.

  5. Click More.

    Screenshot that calls out the More button.

  6. Select the drive that you want to use on the virtual machine and click Ok.

    Screenshot that shows the local resources and drives that you can select.

  7. Select Save my settings for future connections to this virtual machine.

    Screenshot that calls out the checkbox to select for this option.

  8. Click Connect.

Edit VMConnect settings

You can easily edit your connection settings for VMConnect by running the following command in Windows PowerShell or the command prompt:

VMConnect.exe <ServerName> <VMName> /edit

Requirements for using local resources

To be able to use a computer's local resources on a virtual machine:

  • The Hyper-V host must have Enhanced session mode policy and Enhanced session mode settings turned on.

  • The computer on which you use VMConnect must run Windows 10, Windows 8.1, Windows Server 2016, or Windows Server 2012 R2.

  • The virtual machine must have Remote Desktop Services enabled, and run Windows 10, Windows 8.1, Windows Server 2016, or Windows Server 2012 R2 as the guest operating system.

If the computer running VMConnect and the virtual machine both meet the requirements, you can use any of the following local resources if they're available:

  • Display configuration

  • Audio

  • Printers

  • Clipboards for copy and paste

  • Smart cards

  • USB devices

  • Drives

  • Supported plug and play devices

Why use a computer's local resources?

You might want use a computer's local resources to:

  • Troubleshoot a virtual machine without a network connection to the virtual machine.

  • Copy and paste files to and from the virtual machine in the same way you copy and paste using a Remote Desktop Connection (RDP).

  • Sign in to the virtual machine by using a smart card.

  • Print from a virtual machine to a local printer.

  • Test and troubleshoot developer applications that require USB and sound redirection without using RDP.

See Also

Connect to a Virtual Machine
Should I create a generation 1 or 2 virtual machine in Hyper-V?

You can’t perform that action at this time.