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

:descriptionFound

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
torchwood

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.

Roy
My System SpecsSystem Spec
Reply

 Windows 7 and windows PE boot




Thread Tools




Similar help and support threads
Thread Forum
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
Windows XP and Windows 7 dual boot. Problem with Windows 7 start up
I have installed dual boot OS in my desktop. WD 1TB (500GB windows XP and 500GB windows 7) ALL 32 BIT. I installed the windows XP first. The Windows XP had installed on first partition and 2nd partition is Windows 7. The XP boot in to windows without any problem. But the windows 7 right...
Installation & Setup
Multi-boot/Dual-Boot Windows XP on Windows 7
So I'm in need of the time right now, where I need help on installing Windows XP. I already made a partition of where I'm going to install XP and stuff like that. The only thing I need right now is, I have a USB Lexar 2 GB and SD Card 1 GB and my desktop that have the files on the installation...
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 21:04.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App