Virtualization Create Shortcut of Hyper-V Virtual Machine in Windows 11


Hyper-V_virtual_machine_banner.png

This tutorial will show you how to create a shortcut of a Hyper-V virtual machine in Windows 10 and Windows 11.

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Hyper-V is only available on 64-bit versions of Windows 10/11 Pro, Enterprise, and Education. Hyper-V is not available on the Home edition.

You can create a shortcut of a Hyper-V virtual machine to make it easier to directly connect and start the virtual machine. You can Pin to taskbar, Pin to Start, add to All apps, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.


You must be signed in as an administrator to create and use a shortcut of a Hyper-V virtual machine.


EXAMPLE: Running Hyper-V virtual machine shortcut

Hyper-V_virtual_machine.png



Here's How:

1 Right click or press and hold on the Desktop, click/tap on New, and click/tap on Shortcut. (see screenshot below)

Hyper-V_virtual_machine_shortcut-1.png

2 Type the target below into the location box, and click/tap on Next. (see screenshot below)

vmconnect.exe localhost "VMName"

Substitute VMName in the target above with the virtual machine name (ex: "W10 UEFI") you want.

For example: vmconnect.exe localhost "W10 UEFI"


Hyper-V_virtual_machine_shortcut-2.png

3 Type a name you want for this shortcut, and click/tap on Finish. (see screenshot below)

Hyper-V_virtual_machine_shortcut-3.png

4 Right click or press and hold on the shortcut, and click/tap on Properties. (see screenshot below)

Hyper-V_virtual_machine_shortcut-4.png

5 In the Shortcut tab, click/tap on the Advanced button. (see screenshot below)

Hyper-V_virtual_machine_shortcut-5.png

6 Check Run as administrator, and click/tap on OK. (see screenshot below)

Hyper-V_virtual_machine_shortcut-6.png

7 Click/tap on OK. (see screenshot below)

Hyper-V_virtual_machine_shortcut-7.png


That's it,
Shawn Brink


 
Last edited:
Why does vmconnect.exe require run as administrator?

If I start "Hyper-V Manager" from start menu and then in it connect to a VM, it never asks for Administrator rights (the UAC dialog never appears).
 

My Computer

System One

  • OS
    Windows 11
Why does vmconnect.exe require run as administrator?

If I start "Hyper-V Manager" from start menu and then in it connect to a VM, it never asks for Administrator rights (the UAC dialog never appears).

Hello, :alien:

Agreed, but "vmconnect.exe" requires to "Run as administrator" when used as a shortcut to avoid the error below.

error.png
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
I did this as target in shortcut:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "$VM = 'NAME'; if ((Get-VM -Name $VM).State -ne 'Running') {Start-VM -Name $VM;} vmconnect.exe localhost $VM;"
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    configured myself
    CPU
    Intel Core i9-13900KF
    Motherboard
    ASUS ProArt Z790-CREATOR WIFI
    Graphics Card(s)
    NVIDIA GeForce RTX 4070 Ti
I did this as target in shortcut:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "$VM = 'NAME'; if ((Get-VM -Name $VM).State -ne 'Running') {Start-VM -Name $VM;} vmconnect.exe localhost $VM;"

Only Franky's command worked for me until I read elsewhere that if you don't have a space in your VM name, that you should remove the quotation marks. Now both ways works.
 

My Computer

System One

  • OS
    Win11 Pro N
Back
Top Bottom