VHD mounting under Windows 7

Windows 7 has native support for VHD mounting (and booting). In my earlier blog post about VHD mounting under Vista you needed vhdmout.exe from Virtual Server. In Windows 7 you can use Disk Management and/or diskpart to mount VHD’s native!

Disk Management

You can also mount a VHD file in scripts using diskpart. Create a text file with this content:

SELECT VDISK FILE=”some  vhd file”

To attach the VHD image in a script, you have to use “diskpart -s textfile