Create a shortcut to your Hyper V virtual machines

If you’re like me, you access your Hyper V server through Remote Desktop, and it’s a bloody pain having to drill down through the Server Manager to get to the Hyper V options.

This quick little script will allow you to launch your VMs from a shortcut on your desktop or anywhere else:

Right click on your desktop and select New -> Shortcut

In the ‘Type the location of the item:’ box, enter the following:

"c:\program files\hyper-v\vmconnect.exe" SERVER VMNAME

SERVER is the name of the Hyper V server
VMNAME is the full name of the Virtual Machine

Click OK and you’re good to go!

NB: This technique will apparently only work if your VM isn’t clustered, another technique is listed in the link for those situations.

Further Reading: