Virtualization Technology News and Information
Article
RSS
Double Click a VHD to mount it

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.

Published Wednesday, September 06, 2006 9:13 AM by David Marshall
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<September 2006>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567