Written by 2:02 pm Microsoft, Windows, Windows Server • 4 Comments

Howto Attach / Detach VHD in Windows Server 2008 R2

This little HowTo shows you how you can attach or detach VHDs (Virtual Hard Disk) in Windows Server 2008 R2 or Windows 7. Basically you can use the Disk Management in the Server Manager to do that.

  1. Open Disk Management
    Disk Management Windows Server 2008 R2
  2. Now click on “More actions” and “Attach VHD”
    Disk Management Windows Server 2008 R2
  3. Now you can choose the VHD you want to attach
    Attach VHD
  4. As you can see you have now a new Virtual Hard Drive in your Disk Management
    Attach VHD Windows Server 2008 R2
  5. To Detach the VHD right click on it and click on “Detach VHD”
    Detach VHD Windows Server 2008 R2

You can also attach and detach VHD’s via diskpart.exe

Attach VHD with Diskpart.exe

Attach VHD via Diskpart.exe

diskpart
select vdisk file="D:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\data.vhd"
attach vdisk

Detach VHD via Diskpart.exe

diskpart
select vdisk file="D:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\data.vhd"
attach vdisk

Tags: , , , , , , , , , , , , , , , , Last modified: December 9, 2010
Close Search Window
Close