Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Windows 7 and windows PE boot

29 Apr 2016   #1
Anders Jepsen

windows 7 enterprise 64 bit
Windows 7 and windows PE boot

Hi i am trying to build a WDS setup where a Recovery partition is created. The recovery partition have the drive letter R, and the content of the drive corosponds to that of a bootable USB or CD.
I want to add my R drive to my BCD file and create a Boot loader entry that makes it possible to boot into the windows setup on the recovery drive and install windows anew on the C drive.
For this purpose I have created the following script.
SCRIPT START ……………………………………………………….
bcdedit /set {default} description "Recovery"
bcdedit /copy {default} /d "Windows"

bcdedit /deletevalue {default} nx
bcdedit /deletevalue {default} inherit
bcdedit /deletevalue {default} resumeobject
bcdedit /set {default} device ramdisk=[R:]\sources\boot.wim,{ramdiskoptions}
bcdedit /set {default} path \Windows\System32\Boot\winload.exe
bcdedit /set {default} locale en-US
bcdedit /set {default} osdevice ramdisk=[R:]\sources\boot.wim,{ramdiskoptions}
bcdedit /set {default} systemroot \Windows
bcdedit /set {default} detecthal Yes
bcdedit /set {default} winpe Yes

setlocal enabledelayedexpansion

set description=Windows
for /f "tokens=1*" %%a in ('bcdedit.exe') do (
if /i "%%a"=="identifier" (set identifier=%%~b)
if /i "%%a %%b"=="description %description%" (goto :descriptionFound)
echo Did not find description matching '%description%'

exit /b 1


echo Found description %description% at ID %identifier%.

ECHO bcdedit /default %identifier%

bcdedit /default %identifier%
bcdedit /displayorder %identifier% /addfirst
bcdedit /timeout 5
SCRIPT END ……………………………………………………….

The script executes perfectly but when I reboot and chose the Recovery boot option Windows PE ends in blue screen of death after the first loading screen.

I have tried creating the same entry using the EasyBCD software and that works perfect, can anyone help ??

My System SpecsSystem Spec
29 Apr 2016   #2

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring

Hi Anders,
I do know that W7 must be the PRIMARY OS boot option, otherwise causes all kinds of probs possibly yours as well.

My System SpecsSystem Spec

 Windows 7 and windows PE boot

Thread Tools

Similar help and support threads
Thread Forum
Windows won't boot. Windows installation disk won't boot. (Windows 7)
So the problem started something like a month ago. Computer took really long to boot up, and when it boots up it is really slow and freezes on a single hover over a desktop icon, and the little red light on computer is constantly on. After some 15-30min the red light is off and it's not freezing...
General Discussion
Dual boot windows vista and windows 7 boot error winload.exe
I am trying to dual boot with 2 different hard drives and 2 different systems. One is Vista x64 and the other is Windows 7 Professional 32-bit. After installing the hard drive with Windows 7 which came from a different computer, I used EasyBCD to configure the boot order. Windows vista still works,...
Installation & Setup
Windows 7 Crashes at Boot Manager after Deleting Windows 8 Dual Boot
Hi all, I followed some instructions to remove the Windows 8 Dual Boot by just deleting the Windows 8 Partition and that there was no need to edit the boot menu as everything will be done automatically after restart. Now, when I tried to reboot my computer, the computer hangs at the screen...
General Discussion
Windows 7 / Windows 8 Dual-Boot - Set Boot Default
Hello all. Here at Seven Forums in this thread there was a big confusion about the best way to set the default boot menu to use during PC start-up, I too was a part of this confusion. I fooled around and found MSCONFIG is still the best, easiest way to set the default boot-menu to use;...
Installation & Setup
Dual boot Windows 7 pro and Windows Server 2008 - boot loader
Hey guys i installed windows 7 and windows server 2008 in different partition. I first installed windows 7 and then installed windows server 2008.(I dont know if that makes much of a difference). However , -----after installing the server i could not see the windows 7 in my boot loader so i had...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:32.
Twitter Facebook Google+