Mount VHD with Diskpart

VHDMount with Diskpart


Note: This requires Windows 7 or Windows Servver 2008 R2.


This is the same idea as the VHDMount.exe however we are going to be using the diskpart command from the command prompt. This is actually quite simple.

To begin, open a command prompt.

You will first select the VHD that you wish to mount with the following command


sel vdisk file="c:\users\Administrator\desktop\vistaSP1.vhd"


Then attach it to your system with the following command:


attach vdisk

to detach the VHD type:

detach vdisk


Wednesday, January 28, 2009

0 comments: