Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Virtual Hard Disk - Unattach and Delete VHD

 

Virtual Hard Disk - Unattach and Delete VHD

How to Unattach and Delete a Virtual Hard Disk in Windows 7
Published by Brink
11-17-2008
Default Virtual Hard Disk - Unattach and Delete VHD

How to Unattach and Delete a Virtual Hard Disk in Windows 7


information   Information
A Virtual Hard Disk is a created VHD file on your hard drive that acts as a separate hard drive disk in Computer. This will show you how to unattach, or unattach and delete, the VHD that you have already created and attached in Windows 7.
warning   Warning
  • Unattach VHD - This will only remove the VHD from Disk Management and make it unavailable in Computer until the VHD file is attached again. It does not delete the VHD file.
  • Delete VHD - This will remove the VHD from Disk Management and Computer, and also permanently delete the VHD file and all data stored on it.
  • If you disable the Disk Defragmenter service, then you will get the error below when you try to do anything in Disk Management. If you get this error, then make sure that the Disk Defragmenter service is set to only Manual.
Virtual Hard Disk - Unattach and Delete VHD-error.jpg

EXAMPLE: Virtual Hard Disk (VHD) in Computer
Virtual Hard Disk - Unattach and Delete VHD-computer.jpg


Here's How:
1. Open the Control Panel (All Items View).
A) Click on the Administrative Tools icon, and click on Computer Management.

B) Go to step 3.
OR

2. Open the Start Menu.
A) In the Search box, type compmgmt.msc and press Enter.
3. If prompted by UAC, then click on Yes.

4. In the left pane, click on Disk Management. (See screenshot below step 5)

5. In the middle pane, right click on the Disk # of the VHD (left side in middle pane), and click on Detach VHD. (See screenshot below)
Virtual Hard Disk - Unattach and Delete VHD-detach_vhd.jpg
6. To Only Detach the Virtual Hard Disk
A) Uncheck the Delete the virtual hard disk file after removing the disk box. (See screenshot below step 8)

B) Go to step 8.
7. To Detach and Delete the Virtual Hard Disk
A) Check the Delete the virtual hard disk file after removing the disk box. (See screenshot below step 8)
8. Click on OK. (See screenshot below)
Virtual Hard Disk - Unattach and Delete VHD-detach-2.jpg
9. The VHD has been removed from Disk Management and Computer. (See screenshots below)
NOTE: If you did step 7, the VHD file will also now be deleted to.
Virtual Hard Disk - Unattach and Delete VHD-unattached_vhd_disk_mangement.jpgVirtual Hard Disk - Unattach and Delete VHD-computer-unattached.jpg
That's it,
Shawn




Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 37,188

Tutorial Tools
11-24-2009   #1
Suranjit


Windows 7 64 bit
 
 


Thanks....

My System SpecsSystem Spec
11-26-2009   #2
Brink


Windows 7 Ultimate x64 SP1
 
 


You're welcome Suranjit.
My System SpecsSystem Spec
12-28-2009   #3
maiki


Windows 7
 
 

I cannot detach it!

It is weird. I attached a VHD (a Windows Backup file), in Disk Management, that worked fine. But when I right-click it, there is no option to detach it, I cannot mfind that detach option anywhere.

How do I get that option?
My System SpecsSystem Spec
.


12-29-2009   #4
Brink


Windows 7 Ultimate x64 SP1
 
 


Hello Maiki, and welcome to Seven Forums.

Be sure that you are right click on the Disk # part on the left side (box in red under step 5), and not on the actual driver letter part with the partition.

Hope this helps,
Shawn
My System SpecsSystem Spec
04-10-2010   #5
StreetSpirit


Windows 7 Ultimate
 
 

Excellent advice.

I also couldn't find the Detach option. Thanks for clearing up the fact that the area to click is on the left part which actually has the drive #.

Kudos!
My System SpecsSystem Spec
04-10-2010   #6
Brink


Windows 7 Ultimate x64 SP1
 
 


You're welcome, and thank you StreetSpirit.
My System SpecsSystem Spec
06-04-2010   #7
deeprana94


Microsoft Windows 7 Ultimate
 
 

Thanx

Hey mann, It's cool..................
My System SpecsSystem Spec
06-13-2010   #8
kennleland


windows 7
 
 

Administrator can n0t detach virual drives

I am using an account which is classified as an Administrator account. I have disabled the administrator account that tMicrosoft incoludes in windows 7. However I am unable to detach virtual drives, as you showed.
My System SpecsSystem Spec
06-13-2010   #9
Brink


Windows 7 Ultimate x64 SP1
 
 


Hello Kennie, and welcome to Seven Forums.

Could you post some screenshots of what you see instead of what's in the tutorial, and any message it gives you when you try to detach a VHD?
My System SpecsSystem Spec
Comment

 Virtual Hard Disk - Unattach and Delete VHD problems?



Tutorial Tools



Similar Threads for: Virtual Hard Disk - Unattach and Delete VHD
Windows 7 Tutorial Category
Solved Virtual Hard Disk Virtualization
attach a Virtual Hard Disk to install XP? Virtualization
Virtual Hard Disk error Virtualization
Virtual Hard Disk - Create and Attach VHD Tutorials
partition vs virtual hard disk - VHD Performance & Maintenance


All times are GMT -5. The time now is 11:28 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30