In my previous blog post I explained how to use windows 7 Boot to VHD feature to dual boot computer without installing OS in different partition.
To use this feature you need to have VHD file with OS installed. This blog post points to resource that allows you to create bootable VHD from Windows 7/Server 2008 R2 and Windows 8/Server 2012 setup media.
Technology used to create VHD is already built into Windows 7 and higher, in the form of Virtual Hard Disk & Windows Imaging Interface API, these API are exported from virtdisk.dll and Wimgapi.dll.
Following blog post explains how to use these built-in API in PowerShell script
Note: PowerShell script referred in the blog post is no longer available , use the alternative link here
- Virtual Hard disk API reference.
- Windows Imaging API reference.
- Windows 8 Enterprise 90-day evaluation.
- New Windows 8 specific PowerShell script for creating bootable VHD.