View Source

h2. Detaching VHDs

Detaching a VHD makes it unavailable for use. Detaching a VHD does not delete the VHD or any data stored in it.

To detach a VHD, follow the instructions below.

h4. Detaching VHD Using R1Soft Hyper-V VHD Explorer

1. [Launch the R1Soft Hyper-V VHD Explorer|http://wiki.r1soft.com/display/CDP3/Launching+Hyper-V+VHD+Explorer].

2. Select an item in the "Attached VHDs" pane.
!1.png!

3. Click on "Detach" button located on the application toolbar.
!11a.png!

Alternatively, on the "File" menu you can select the "Detach" command.

4. Confirm your request to detach the selected VHD by clicking on "Yes" in the displayed confirmation dialog.
!detach.png!

The VHD disappears from the Hyper-V VHD Explorer.

h4. Detaching VHD Using Context Menu

1. Locate an attached {color:blue}.vhd{color} file on your computer.

2. Right-click it and from the context menu select the "VHD Detach" command.
!vhd-detach.png!

The command will use the Windows Shell Integration.

h4. Detaching VHD Using R1Soft Hyper-V VHD Console

1. Click "Start" and select the "Run" menu.
!run1.png!

2. Type "*cmd*" without quotes and press <Enter>.
!cmd.png!

3. Go to the folder where the R1Soft Hyper-V Explorer is installed.
!cd1.png!

4. Run the following command:
{code}
"R1Soft Hyper-V Console.exe" -d -f <file path>
{code}
!console-df.png!{excerpt:hidden=true}Instructions on how to detach VHD files.{excerpt}