This walkthrough describes how to boot Windows PE directly from a hard disk but not into a RAM disk. This enables you to start a computer for the purposes of deployment and recovery.
To complete this walkthrough, you need the following:
Select one of these options and follow the instructions for building a bootable Windows PE RAM media. Ensure that you include ImageX with your image. After you create your bootable media, continue to the next step.
In this step, you boot the new computer with your Windows PE media and format the hard drive.
diskpart select disk 0 clean create partition primary size=<insert size> select partition 1 active format fs=ntfs exit
In this step, you copy Windows PE resource files to the hard drive from your bootable media. You need ImageX to apply the Boot.wim to the hard drive. This example assumes the hard drive is blank.
d:\imagex /apply d:\sources\boot.wim 1 c:
xcopy d:\boot\*.* /e /f c:\boot\
copy d:\bootmgr c:
del c:\boot\bcd
In this step, you will create a new boot configuration file called BCD by using BCDEdit. BCD replaces Boot.ini. BCDEdit is a command-line tool that is designed to manage BCD stores. BCDEdit is available in Windows PE and Windows Vista. For example,
Bcdedit –createstore c:\temp\BCD Bcdedit –store c:\temp\BCD –create {bootmgr} /d “Boot Manager” Bcdedit –store c:\temp\BCD –set {bootmgr} device boot Bcdedit –store c:\temp\BCD –create /d “WINPE” –application osloader Bcdedit –import c:\temp\BCD
The last command returns a GUID value. Substitute <GUID> with this value in the following examples.
Bcdedit –store c:\boot\BCD –set <GUID> osdevice partition=boot Bcdedit –store c:\boot\BCD –set <GUID> device partition=boot Bcdedit –store c:\boot\BCD –set <GUID> path \windows\system32\boot\winload.exe Bcdedit –store c:\boot\BCD –set <GUID> systemroot \windows Bcdedit –store c:\boot\BCD –set <GUID> winpe yes Bcdedit –store c:\boot\BCD –set <GUID> detecthal yes Bcdedit –store c:\boot\BCD –displayorder <GUID> -addlast
Your computer is now ready to boot Windows PE directly from the hard disk.
Bcdedit –store c:\boot\BCD –set <GUID> osdevice partition=bootBcdedit –store c:\boot\BCD –set <GUID> device partition=boot
"boot" needs to be replaced with the drive letter of the pe partition (that you are creating), ie C: