As a follow up to the Virtual Hard Drive walkthrough this is the basic steps to install Windows 7 to a VHD.
- Type in the Windows search cmd.exe
- Right click on cmd and select “Run as Administrator” and then Yes on the following prompt
- Type diskpart then hit enter
- Type in the following command create vdisk file=c:\VHDs\VHD1.vhd type=fixed maximum=16000 and then hit enter
- After waiting for a few minutes the following will be displayed “Diskpart Successful created the virtual file”
- Boot off of the Windows 7 install disk
- After the Windows 7 is fully booted in to it’s PE environment accept your language settings and click OK
- Now hold down the Shift key + F10 to open a command prompt
- Type diskpart and then hit enter
- Type select vdisk file=C:\VHDs\VHD1.vhd and then hit enter
- Type attach vdisk and then hit enter
- Close the command prompt window and then proceed normally with the Windows 7 installation
- At the drive selection screen select the 16 GB drive that you just created
- Ignore any warnings and continue through the rest of the process