To mount a VHD file onto your file system, you either ran some very complicated VB (or PowerShell) Script or you used VHDMount.exe that came with Virtual Server. If you’re running Windows 7 (or Windows Server 2008 R2), you can now use Diskpart.
So, from an elevated command prompt, run Diskpart.
Select the VHD in question:
sel vdisk file="c:\users\daven\desktop\xp professional.vhd"
Then attach it to your system:
That’s it. Pretty easy.
<p>Now if they would just include a built-in ISO mount utility with Windows 7.</p>
<p>I can only agree with you Joe - I've been asking for the same thing for years...</p>
<p>take a look at Portlock SMART Suite for windows. No installation required. allows you to mount an ISO with a program called Portlock Drive Explorer. I had no problems accomplishing this on Win 7. Theres a free trial for download</p>
<p>Can you mount differencing disks with this?</p>
<p>Yeah, I know, I should get 2008 R2 up and running. Will do _soon_.</p>
<p>In "disk management" look at "actions->more actions" - you can do the same thing with the GUI! - I am on Win7 build 7000, still - I suppose it is still there on newer builds too!</p>
<p>Thank you Soooooooo Much for this tip</p>
<p>Gotta Love Diskpart!</p>
<p>Way cool - thanks for this Dave!</p>
<p>Nice one Dave, however it looks like it does not support RAW or EFS filesystems which I believe Vhdmount did. Bummer</p>
<p>did you have heard about Gizmo drive?</p>
<p>It does many of the things that you are discussing here.</p>
<p>It's a very handy tool and it's free.</p>
<p><a rel="nofollow" target="_new" href="http://arainia.com/software/gizmo/overview.php?nID=4">http://arainia.com/software/gizmo/overview.php?nID=4</a></p>
<p>How to make .bat file to attach vhd every time I boot a system?</p>
<p>This post reminds me why I love the internet-thanks a million.</p>
<p>Thanks a lot! Saved me lots of time :)</p>
<p>Joe (& others) you may want to check out ImDisk for working with disk virtual drives, not sure if it works with Windows 7 or not, but it allows you to mount ISO image files and other 'raw' image files (.bin, .ima, .img, .dsk & more) as virtual drives using the right click context menu, it handles raw images produced from entire physical drives or just images produced from individual partitions (FAT/FAT12/FAT32/NTFS possibly a few more not surethough). You can get it here:</p>
<p><a rel="nofollow" target="_new" href="http://www.ltr-data.se/opencode.html#ImDisk">http://www.ltr-data.se/opencode.html#ImDisk</a></p>
<p>You don't need to do it this way at all! It is super easy to do using diskmgmt.msc or through manage computer --> disk management. Once the console is finished loading, click the Action menu, choose Attach VHD, browse to your vhd file and viola!</p>
<p>You may need to initialize the disk after it mounts.</p>
<p>See, super easy!</p>
<p>Thanks for the article and the comments--command line and diskmgmt.msc--Yea...</p>
<p>And for the ISO comment. I use 7-zip. It now extracts ISOs, runs x86, x64, etc. And it has always compresse better than Winzip. Plus you can run the command line version on your servers without an install.</p>