Events
Apr 29, 2 PM - Apr 30, 7 PM
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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 to 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.
For virtual machines that run Ubuntu, see Changing Ubuntu Screen Resolution in a Hyper-V VM.
Local resources include printers, the clipboard, and local drive(s) on the computer where you're running VMConnect. For more information, see Requirements for using local resources.
To choose a local resource:
Open VMConnect.
Select the virtual machine that you want to connect to.
Select Show options.
Select Local resources.
Select More.
Select the drive that you want to use on the virtual machine and click Ok.
Select Save my settings for future connections to this virtual machine.
Select Connect.
The path to the local drive shared to the virtual machine, in a Windows-based guest VM, is located at This PC under Redirected drives and folders. The path for a Linux-based guest VM is located at /home/shared-drives.
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
Note
An elevated command prompt may be required.
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 at least Windows 10, or Windows Server 2016.
The virtual machine must have Remote Desktop Services enabled, and run at least Windows 10, or Windows Server 2016.
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
You may want to use the 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.
Events
Apr 29, 2 PM - Apr 30, 7 PM
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up now