Dualbooting to Windows 10 using a VHD

If you would like to try out Windows 10, an excellent way is to create a new VHD. This can easily be copied or removed.

There are several guides on the net with various way to achive this. But it is actually not that difficult and here is our recipe for creating and booting into a Windows 10 VHD.

Prerequistites:

Nescessary steps
Start PowerShell with administrator priviledges.

Make sure, that execution policy allows external scripts. I use the setting ‘Unrestricted’, which prompts before a script is allowed:

set-executionpolicy Unrestricted

Next, create a bootable VHD-using Pronichkin’s script:

Convert-WindowsImage.ps1 -SourcePath WindowsTechnicalPreview-9879-x64-EN-US.iso -Edition Professional -VHDFormat VHD -SizeBytes 40GB -VHDPath C:VHDWindows10.vhd

(replace paths for SourcePath and VHDPath as needed)

Next, we need to add a boot-entry for the VHD. You can do this using BCDEdit, but I find the easist way is to attach the VHD using Disk Management.

  • Open Disk Management
  • Attach the VHD and note the assigned drive letter, eg. E:
  • Open a command line with administrator priviledges
  • Type the following:
bcdboot E:Windows (replace E: with the assigned drive letter)

And voila, you’re done. Happy testing

By |2016-11-26T13:18:40+00:00november 30th, 2014|Windows|0 Comments