Dual Boot Windows 7 and Windows 8 Consumer Preview - Not So hard
Friday, April 27, 2012 at 1:09PM I went to Windows 8 Developer Cam yesterday. Before going I tried several different ways of getting teh dual boot to work. In the end I decided that most of the descriptions where a lot more difficult then they had to be and that some of the Microsoft Documentation was wrong, hence this post.
My Hardware
ASUS N53S
64Bit Quad Core with Hyperthreading
16 GB Ram
750 GB 7200 RPM Hard drive partition to 250 / 500
Assumptions
- You have plenty of hard drive space 1 have 200GB. I would suggest a minimum of 80GB during the process. 60 afterward.
- You are a local administrator becuase this method requires access to Computer Management, Powershell and Command Window as Administrator
- You have downloaded Install-WindowsImage.ps1 from Microsoft
- Windows is installed in c:\windows If not you will need to substitue this for your windows path.
Recommendations
- Unzip the ISO The install os faster than from DVD. I have PowerISO installed and thought it would be a good idea to mout the ISO instead of extracting it and this made the imaging time increase dramatically. The second time around I used WINRAR and it was much better.
Step 1 Create the VHD
- Created a folder to store the VHD file. I used d:\VMS
- Open Computer Management. By
- Administrative Tools / Computer Management, or
- right click my Computer and select Manage, or

- Click Disk Management. After a minute (depending on your machine) the current hard drive details will be displayed.

- Right Click Disk management and Select Create VHD. I set mine up as

-
- D:\VMS\Windows8b.vhd
- 60 GB
- Dynamically Expanding
- Click OK. Windows will automatically mount it for you. It will show up as an unknown disk type.
- Right click the whe disk name and select Initialise and click OK, leaving the default settings.

- The drive will now be Unallocated.

- Right Click the drive and select New Simple Volume
- The New Simple Volume wizard will be displayed
- Click Next
- Click Next. This will ensure the entire drive is used
- Set The drive letter to suit. Write it down you will need it later.
- Click Next
- Set the Name of the Volume and click Next
- Click Finish
- Windows will now format the drive and mount it so it is usable. If the autorun window opens just close it.
So now you have a virtual drive ready and raring to go.
Step 2 Image the VHD
Ensure you have downloaded Install-WindowsImage.ps1
Click Start, and type PowerShell in the Start text box.
In the results pane, right-click Windows PowerShell with elevated permissions (run as Admin)
A pretty blue screen appears this will let you call the script and image your VHD.
On the install image will be an install.wims file. This is the Windows Image file that is used by the script. In my case this is found in D:\vms\Win8\sources
To display the available installation run the script enter (replacing the path and filename)
D:\vms\install-windowsImage.ps1 -wim D:\vms\Win8\sources\install.wims
If a red message is displayed DO NOT PANIC.
In a lot of cases your machine will have scripts disabled. This is the default isntallation. to enable scrpts enter
C:\Windows\system32> set-ExecutionPolicy Unrestricted
and message will be displayed
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
Hit enter for the default option
Now try running the script again. The below installation detail should be displayed
Index Image Name
[1] Windows 8 Consumer Preview
Done.
Now I know there is only one installation option I can run the script and tell it to apply the image by entering the following. Don't forget to change your paths and file location.
DOUBLE CHECK THE INSTALL LOCATION
d:\vms\Install-WindowsImage.ps1 -WIM d:vms\Win8\sources\install.wim -Apply -Index 1 -Destination W:
Once you confirm that the script can run the below details will be displayed
Applying "Windows 8 Consumer Preview" to F:...
WARNING: This may take up to 15 minutes...
NOTE: Do not take this time frame as gospel. I did this 3 time and it ranged from 25 - 40 minutes.
After the install is complete Powershell will tell you the time elapsed.
At this point you have created a virtual hard drive and installed windows and it is ready to run. All you need to do is add the boot menu option. This is where my first install went haywire.
- Open the Command Prompt as Administrator
- Type the following F:\Windows\SYSTEM32\bcdboot F:\windows
- REPLACE F:\windows with your your drive
When I rebooted my computer I got the Blue Screen of Windows 8 Boot Menu, Selected Windows 8, entered by Product key and off into configuration land we go.
Conclusion
There are a lot of steps and most of the are GUI driven and there is no need to do everything at the command line.





