Mount a VHD File as a Drive in Windows 7
Dave Coleman | August 30, 2010One of the features in Windows 7 is the ability to mount a VHD file as a drive, this could be very useful in this world of HyperV because this allows you to extract a file directly from the VHD file on a desktop machine very useful if you have a VHD backup of your server and just require a few files.
The first step is to open disk management, once open right click on Disk Management and choose “attach VHD”.
Once attached you will see a new drive in my computer, you can then copy files from and too the mounted VHD file.
To dismount the VHD from disk manager just right click on the disk and from the sub context menu choose “Detach VHD”
You can as well mount the VHD from the command prompt or via PowerShell first from the CLI load diskpart
Next use the command select vdisk file=”C:\vhd\test.vhd”
To attach the VHD use the command attach vdisk
To unmount the VHD use detach vdisk
UPDATE
Deano left a great comment on the post:which i thought i would share -
“This is a really handy feature of Windows 7 that I have used a lot of times. One thing to point out is that this feature is only available in Windows 7 Enterprise and Windows 7 Ultimate”
Dave


































