<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mikedopp.com &#187; Mount VHD via Double Click event</title>
	<atom:link href="http://mikedopp.com/index.php/tag/mount-vhd-via-double-click-event/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikedopp.com</link>
	<description>Code Monkey by Day, Unix/Windows Administrator by Night, Social Media Chump 24/7</description>
	<lastBuildDate>Wed, 09 Jun 2010 07:37:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Double click VHD Mounting</title>
		<link>http://mikedopp.com/index.php/2009/08/07/double-click-vhd-mounting/</link>
		<comments>http://mikedopp.com/index.php/2009/08/07/double-click-vhd-mounting/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:18:00 +0000</pubDate>
		<dc:creator>mikedopp</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Virtual Hard Drive]]></category>
		<category><![CDATA[Mount VHD via Double Click event]]></category>

		<guid isPermaLink="false">http://mikedopp.com/index.php/double-click-vhd-mounting/</guid>
		<description><![CDATA[After installing Virtual Server R2 SP1 on your server, you can access VHDMount from the %Program Files%\Microsoft Virtual Server\Vhdmount folder. VHDMount is provided as a command line tool. You can perform various tasks by either running it directly from the Command Line, or by using simple batch files that do what you need to do. [...]]]></description>
			<content:encoded><![CDATA[<p> After installing Virtual Server R2 SP1 on your server, you can access VHDMount from the %Program Files%\Microsoft Virtual Server\Vhdmount folder.   <br /> VHDMount is provided as a command line tool. You can perform various tasks by either running it directly from the Command Line, or by using simple batch files that do what you need to do. Some of the capabilities of VHDMount are: </p>
<p>/p &#8211; Plugs in the specified VHD as a virtual disk device without mounting the volume. </p>
<p>/m &#8211; Plugs in the specified VHD as a virtual disk device and mounts the volume. </p>
<p>/f &#8211; Performs the specified operation without creating an Undo Disk. This parameter is applicable for /p and /m. All changes to the mounted disk are directly written to the specified VHD. </p>
<p>/u &#8211; Unplugs the virtual disk device for the specified VHDFileName. </p>
<p>/c &#8211; Updates the original VHD with all changes that were stored in the Undo Disk anddeletes the Undo Disk after unplugging the disk. This parameter is only applicable if the VHD was mounted without using /f. </p>
<p>/d &#8211; Discards all changes to the mounted disk and deletes the Undo Disk after unplugging the disk. This parameter is only applicable if the VHD was mounted without using /f. </p>
<p>/q &#8211; Displays the disk name of the mounted virtual disk device for the specified VHDFileName. </p>
<p>VHDFileName &#8211; VHD name including full path. </p>
<p>DriveLetter &#8211; Optional parameter for /m option. If drive letter is specified the volumes are mounted starting at the specified drive letter. If drive letter is not specifiedit is automatically assigned. </p>
<p>All &#8211; Applies the operation on all mounted virtual disk devices. This parameter is applicable for /u and /q. </p>
<p>By default, VHDMount creates an Undo Disk in current user&#8217;s temporary folder. All changes to the mounted disk are written to this Undo Disk. Use /c to commit or /d to discard these changes at the time of unplugging the disk device. Use /f option to mount a VHD without an Undo Disk. </p>
<p>Examples:   <br />VHDMOUNT /p [/f] VHDFileName    <br />VHDMOUNT /m [/f] VHDFileName [DriveLetter]    <br />VHDMOUNT /u [/c | /d] VHDFileName | All    <br />VHDMOUNT /q VHDFileName | All </p>
<p>Integrating VHDMount in the Explorer context menu </p>
<p>Ben Armstrong, a Program manager on the core virtualization team at Microsoft, has published a neat registry trick that allows you to mount VHDs by just double clicking on them. By creating a .reg file with the following contents:    <br />Windows Registry Editor Version 5.00 </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD] </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell]    <br />@=&quot;Mount&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount] </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount\comma   <br />nd]     <br />@=&quot;\&quot;C:\Program Files\Microsoft Virtual Server\Vhdmount\vhdmount.exe\&quot; /u \&quot;%1\&quot;&quot; </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount] </p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount\command]    <br />@=&quot;\&quot;C:\Program Files\Microsoft Virtual Server\Vhdmount\vhdmount.exe\&quot; /p \&quot;%1\&quot;&quot; </p>
<p>[HKEY_CLASSES_ROOT\.vhd]    <br />@=&quot;Virtual.Machine.HD&quot; </p>
<p>Double click on the .reg file (to load it into your registry) you will be able to double click a VHD to mount it, and right click on it to dismount it. </p>
<p>Windows will auto-install the correct driver and allow you to see the .VHD file as a new hard drive. </p>
<p>Issues with Windows Vista </p>
<p>Two notes about using this trick with Windows Vista: </p>
<p>&#160;&#160; 1. For some reason &#8216;double click&#8217; does not work in Windows Vista. The only way around it is to right-click on the .VHD file and select &quot;Plug in&quot;. </p>
<p>&#160;&#160; 2. VHDMount needs to run &#8216;As Administrator&#8217;. You can either disable UAC (read my &quot;Disable UAC in Vista&quot; article), or, to get this to work with UAC enabled, you will need to configure VHDMount.exe, go to the Compatibility Mode tab, and check &quot;Run this program as an administrator&quot;. </p>
<p>When you&#8217;re done working with the mounted .VHD file you can right-click it and either choose to commit changes, or not. </p>
<p>Get the functionality of VHDMount without installing Virtual Server </p>
<p>If you need VHDMount but you don’t need or want to install Virtual Server you can install only the VHDMount components, use the Custom option in the Virtual Server R2 SP1 installer and clear all components except VHDMount. </p>
<p>&#160;</p>
<p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:da5f227e-41b2-4cdc-bbe0-3c2e73dc4e04" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://technorati.com/tags/Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://technorati.com/tags/VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:aeb40ee3-729a-4c70-906a-ca4c5c3de8df" class="wlWriterEditableSmartContent">LiveJournal Tags: <a href="http://www.livejournal.com/interests.bml?int=How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://www.livejournal.com/interests.bml?int=Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://www.livejournal.com/interests.bml?int=VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:33012ecd-8cb1-4d4a-aad4-829f441a4b33" class="wlWriterEditableSmartContent">Flickr Tags: <a href="http://flickr.com/photos/tags/How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://flickr.com/photos/tags/Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://flickr.com/photos/tags/VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:adf66f19-5a70-42ef-8bf6-20d5f17f633e" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://del.icio.us/popular/Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://del.icio.us/popular/VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c4b055d7-c555-4adc-95ab-50bcc653fbc0" class="wlWriterEditableSmartContent">IceRocket Tags: <a href="http://blogs.icerocket.com/search?q=How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://blogs.icerocket.com/search?q=Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://blogs.icerocket.com/search?q=VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:a905b364-0738-48bb-b794-abdff25c0470" class="wlWriterEditableSmartContent">43 Things Tags: <a href="http://www.43things.com/tag/How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://www.43things.com/tag/Double+Cli<br />
ck+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://www.43things.com/tag/VHD+fun." rel="tag">VHD fun.</a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6ff743a0-b5a0-4fb4-9e7c-8033a057a5af" class="wlWriterEditableSmartContent">BuzzNet Tags: <a href="http://www.buzznet.com/tags/How+to+Mount+a+VHD+via+Double+Click" rel="tag">How to Mount a VHD via Double Click</a>,<a href="http://www.buzznet.com/tags/Double+Click+VHD+Mounting" rel="tag">Double Click VHD Mounting</a>,<a href="http://www.buzznet.com/tags/VHD+fun." rel="tag">VHD fun.</a></div>
]]></content:encoded>
			<wfw:commentRss>http://mikedopp.com/index.php/2009/08/07/double-click-vhd-mounting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
