Skip navigation

Mounting a Virtual Hard Disk (VHD) File

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_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\] \[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\] @="Mount" \[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount\] \[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount\command\] @="\"C:\\Program Files\\Microsoft Virtual Server\\Vhdmount\\vhdmount.exe\" /u \"%1\"" \[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount\] \[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount\command\] @="\"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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish