Ben Armstrong sends along another great tip for Microsoft Virtual Server 2005 R2 SP1 beta and the new VHDMount utility.
This time, Ben writes that while the tool provided is a command line tool, a very small amount of work will allow you to mount a VHD just by double clicking on it. By creating a .reg file with the following contents, this becomes a snap!
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\" /p \"%1\""
[HKEY_CLASSES_ROOT\.vhd]
@="Virtual.Machine.HD"
And then double clicking on the .reg file to load it into your registry, you will be able to double click a VHD to mount it, and then right click on it to dismount it.
Way cool! Thanks a lot Ben. These are great tricks! Please keep them coming.
To thank Ben or comment on this, check out his original post, here.