Mounting a Virtual Hard Disk (VHD) File
March 5, 2007
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
You May Also Like