Mounting a Virtual Hard Disk (VHD) File

John Savill

March 5, 2007

1 Min Read
ITPro Today logo in a gray background | ITPro Today

How can I enable a context menu option for mounting a virtual hard disk (VHD) file?

A. To enable a context menu item, save the following text as a .reg file and execute. This solution was originally created by Ben Armstrong.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HD][HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HDshell]@="Mount"[HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HDshellDismount][HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HDshellDismountcommand]@=""C:\Program Files\Microsoft Virtual Server\Vhdmount\vhdmount.exe" /u "%1""[HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HDshellMount][HKEY_LOCAL_MACHINESOFTWAREClassesVirtual.Machine.HDshellMountcommand]@=""C:\Program Files\Microsoft Virtual Server\Vhdmount\vhdmount.exe" /m "%1""[HKEY_CLASSES_ROOT.vhd]@="Virtual.Machine.HD"

A Mount and Dismount option will be displayed on the context menu. You can also double-click the file to automount.

—John Savill

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like