/
/

How to Use Local Devices and Resources on Hyper-V Virtual Machines in Windows

by Lauren Ballejos, IT Editorial Expert
How to Use Local Devices and Resources on Hyper-V Virtual Machine in Windows 10 and Windows 11 blog banner image

Instant Summary

This NinjaOne blog post offers a comprehensive basic CMD commands list and deep dive into Windows commands with over 70 essential cmd commands for both beginners and advanced users. It explains practical command prompt commands for file management, directory navigation, network troubleshooting, disk operations, and automation with real examples to improve productivity. Whether you’re learning foundational cmd commands or mastering advanced Windows CLI tools, this guide helps you use the Command Prompt more effectively.

Key Points

  • Prerequisites
    • Host and guest must run Windows 11, or Windows Server 2016 or later (Pro/Enterprise/Education only — not Home).
    • Enhanced Session Mode is not supported on Linux guest operating systems. Generation 2 VMs are recommended for the broadest feature support.
  • Enable Enhanced Session Mode on the host first. Open Hyper-V Manager → select the host → Hyper-V Settings → Enhanced Session Mode Policy → check Allow Enhanced Session Mode.
  • Shareable local resources include USB devices, local storage drives, printers, clipboard (copy/paste), audio (playback and recording), smart cards, and supported plug-and-play devices.
  • To configure resource sharing: Connect to the guest VM via VMConnect → click Show Options → Local Resources tab → select the devices to share. For storage drives, click More… to choose specific drives. Shared drives are accessible on both host and guest simultaneously — no network share needed.
  • Shared resources disconnect when the VMConnect session is closed. To change which resources are shared, close and reopen the VMConnect session from Hyper-V Manager.

This tutorial demonstrates how to use local devices and resources on Hyper-V virtual machines in Windows 11 using Enhanced Session Mode in Hyper-V and VMConnect.

Instructions are provided for host and guest operating systems so that you can share local resources such as storage devices, USB devices, audio, printers, and other supported Plug and Play devices, as well as share the clipboard.

Give virtual machines access to local resources with ful control of your Hyper-V infrastructure.

→ Discover NinjaOne Hyper-V Management software features.

What you need to know before you can access local resources/drives in Hyper-V

To enable Enhanced Session Mode and access shared local resources in Hyper-V, you will need to be running Windows 11, or Windows Server 2016 or later with Hyper-V installed. Note that Hyper-V is not available for hosting virtual machines in the Home editions of Windows 11. Enhanced Session Mode is not available for non-Windows operating systems.

Within the virtual machine, the guest operating system must be running Windows Server 2016 or later. You should use Hyper-V Generation 2 virtual machines, if possible, as more features are supported. Generation 1 virtual machines are limited. Watch “How to See if Your Hyper-V Virtual Machine is Gen 1 or Gen 2” if you don’t know what generation your Hyper-V virtual machine is.

You will need to use VMConnect to connect from a host that supports Enhanced Session Mode to a guest that also supports Enhanced Session Mode. You will then be able to share the following resources:

  • Display configuration
  • Audio
  • Printers
  • Clipboards (for copy and paste)
  • Smart cards
  • USB devices
  • Storage drives (hard drives, USB sticks, etc.)
  • Supported plug-and-play devices

You will need to be logged in as an administrator to configure Enhanced Session Mode and resource/drive sharing in Hyper-V on Windows.

To create a Hyper-V virtual machine to test these steps, you can use the Hyper-V Quick Create feature to boot a Windows 11 development virtual machine. To do this:

1. Click Quick Create… in the Hyper-V Manager Actions sidebar.

Quick create option
2. Then, select the Windows 11 dev environment from the list of operating systems and follow the prompts.

Windows 11 dev environment option

Virtual machine created successfully prompt

3. Once the virtual machine has been created, do not connect to it yet, as there is still some additional configuration required to enable Enhanced Session Mode.

If you want to add your own custom virtual machines to Quick Create, you can generate your own custom virtual machine repository for Hyper-V Quick Create.

Step 1: Enable Enhanced Session Mode on the Hyper-V host

Before you begin, ensure that Hyper-V is installed and enabled on the host Windows operating system. Then enable Enhanced Session Mode by following these steps:

  1. Open the Hyper-V Manager by searching for it in the Start menu
  2. Select the Hyper-V host machine by clicking its name in the sidebar to the left in the Hyper-V Manager
  3. Click Hyper-V Settings in the Actions pane to the right

Hyper-V Settings in the actions pane

  1. In the Server section, click Enhanced Session Mode Policy
  2. Check the Allow Enhanced Session Mode checkbox

Allow enhanced session mode checkbox

  1. Press OK to save and apply the change

Step 2: Configure and connect to the guest Windows operating system

Once enhanced session mode has been enabled on the host, you can use it to share resources and storage drives with the guest operating system:

  1. Select the guest virtual machine in the Hyper-V Manager list of Virtual Machines
  2. Click Connect in the Actions sidebar

Connect option in the Actions sidebar

  1. This will connect to the virtual machine using Virtual Machine Connection (VMConnect)
  2. If the virtual machine is not running, click the Start button in VMConnect to boot it

Select Start from the Action menu

  1. When the Connect dialog appears, choose your display configuration and then expand Show Options using the arrow

Show options

  1. Click on the Local Resources tab
  2. Local resources tabAt this point, you can configure the sharing of local devices and resources to the Hyper-V guest:
    • Press the Settings button under Remote Audio to configure audio sharing (playback and recording) between the host and guest
    • Check or uncheck the Printers and Clipboard checkboxes to enable printer or clipboard sharing
    • Click More… to configure sharing the hosts drives, smart cards, and other plug and play devices with the guest
    • Click Connect to connect to the guest operating system with the specified local resources
  1. If you’re not presented with the option to configure local resources while connecting, click View in the toolbar of the running virtual machine’s VMConnect window, and then click Enhanced Session if it is not enabled.

Enhanced session option

  1. The VMConnect session will then restart in Enhanced Session Mode.

Restart in enhanced session mode

Note that once you disconnect your VM Connect session, the shared resources will also be disconnected. Enhanced Session Mode can only be configured once the virtual machine is running. To reconfigure which local devices and resources are accessible from the Hyper-V guest, close and reopen the VMConnect session to the guest from the Hyper-V Manager.

How do I share and access a local hard drive in Hyper-V?

You can share a local hard drive or USB storage device like a USB stick, and access it from your Hyper-V desks using Enhanced Session Mode.

To do this when connecting using VM Connect, click Show Options and then More… in the Local Resources tab, then check the storage devices that you want to access from the guest operating system. Then, proceed with the rest of the connection process.

Local Resources window tab

Shared storage drives will be available simultaneously on the host and the guests, making this a convenient way to share files between them.

Redirected drives and folders

Why enable local resource access in Hyper-V?

Users commonly enable local resource access in Hyper-V to share files between hosts and guests without requiring the setup of network shares. It also allows for USB devices to be used with virtual machines. This includes USB storage devices, printers, microphones, and webcams.

Clipboard sharing allows items copied on the host or guest to be pasted to the other, improving the convenience of using virtual machines for day-to-day tasks. Audio redirection allows sounds from the guest to be heard through the host device’s sound hardware, and sound recorded on the host to be passed to the guest.

For developers, being able to share devices with virtual machines makes it possible to debug software and hardware in controlled test environments.

Troubleshooting Enhanced Session Mode and resource sharing in Hyper-V

If local resources are not appearing in your virtual machine, you can try the following troubleshooting steps:

  • Make sure that devices are physically connected to the host machine, and that the correct drivers are installed, and that they are properly configured and enabled in the Device Manager
  • Close and re-open the VMConnect session, and make sure that the resources are selected in the Local Resources tab
  • Make sure your host and guest operating systems support Enhanced Session Mode

Manage your IT resources, endpoints, and virtual machines from NinjaOne’s single pane of glass view.

📝 Sign up for a 14-day free trial.

Monitoring and managing Hyper-V virtual machines and resources in the enterprise

NinjaOne Endpoint Management lets you monitor and manage both host and guest Hyper-V machines through a single interface.

This greatly streamlines support and gives you full oversight over all of your IT infrastructure, both physical and virtual. You can also initiate remote access sessions to troubleshoot Hyper-V virtual machine hosts and guests, as well as help users resolve issues with Enhanced Session Mode and sharing local devices and resizing between virtual machine operating systems and their hosts.

FAQs

Make sure your host and guest operating systems both support Enhanced Session Mode. It requires Windows 10 or Windows Server 2016 and onwards, and does not support non-Windows operating systems.

Yes, when connecting to the guest using VM Connect, you can use the local resources tab to specify which USB devices are redirected.

It is not necessary to configure network settings for local resource access. Enhanced Session Mode allows for local resources to be redirected without additional configuration.

No, Enhanced Session Mode is only available in virtual machines running supported Windows operating systems.

You might also like

Ready to simplify the hardest parts of IT?