One 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
Related posts:
- Windows 7 GodMode Part 2 Earlier in the week i posted on GodMode in Windows...
- Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
- Don’t Forget Windows 7 RC Starts Auto Shutdown 1st March For those people still running the Windows 7 Release...
- Windows 7 Phone unveiled Today at the Mobile world congress Steve Balmer Microsoft CEO...
- Blocking Windows Update KB976002 Last week I did a short post called Windows Update...
- Windows Update and the EU Nanny state (KB976002) I am a great believer in keeping not only my...













4 comments
Deano
August 30, 2010 at 10:02 am (UTC 0)
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 Coleman
August 30, 2010 at 10:04 am (UTC 0)
Thanks i will update the post and credit you if that is ok?
Deano
August 31, 2010 at 9:45 pm (UTC 0)
Oh all right then, if you must!
Ravikanth
April 19, 2011 at 2:14 am (UTC 0)
Nice! Check this post: http://www.ravichaganti.com/blog/?p=349
You can actually extend the right-click context menu for VHDs to add the mount and unmount options.