Creating and Attaching VHD using Diskpart utility
Creating and Attaching VHD using Diskpart utility
Open the Elevated Command Prompt with Administrator Privileges and type the following commands
DISKPART
CREATE VDISK FILE=”c:\win7\win7.vhd” MAXIMUM=20000
SELECT VDISK FILE=”c:\win7\win7.vhd”
ATTACH VDISK
CREATE PARTITION PRIMARY
ASSIGN LETTER=X
FORMAT QUICK LABEL=Windows7
EXIT
This will create the VHD file of primary partition. You will see the newly attached disk in Disk Management with Drive Letter X:
Popularity: 2%
