Virtual Hard Disk - Unattach and Delete VHD

Page 1 of 2 12 LastLast
    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
    Designer Media Ltd


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


       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

    • 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 (icons 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.jpg

    Virtual Hard Disk - Unattach and Delete VHD-computer-unattached.jpg
    That's it,
    Shawn








  1. Posts : 43
    Windows 7 64 bit
       #1

    Thanks....
      My Computer


  2. Posts : 71,709
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    You're welcome Suranjit. :)
      My Computer


  3. Posts : 24
    Windows 7
       #3

    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 Computer


  4. Posts : 71,709
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    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 Computer


  5. Posts : 13
    Windows 7 Ultimate
       #5

    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 Computer


  6. Posts : 71,709
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    You're welcome, and thank you StreetSpirit. :)
      My Computer


  7. Posts : 3
    Microsoft Windows 7 Ultimate
       #7

    Thanx


    Hey mann, It's cool..................
      My Computer


  8. Posts : 1
    windows 7
       #8

    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 Computer


  9. Posts : 71,709
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
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
All times are GMT -5. The time now is 19:45.
Find Us