Windows 7 and windows PE boot

Anders Jepsen

New member
Local time
2:36 PM
Messages
1
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 Computer

Computer type
PC/Desktop
OS
windows 7 enterprise 64 bit
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
medionl/Aspire 6930G/acer x55a
OS
W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
CPU
E5300 dual core
Motherboard
medion MS7366
Memory
3gb
Graphics Card(s)
Nvidia Geforce 7100 Nforce 630i
Monitor(s) Displays
avixc
Internet Speed
n (isp resticted to 72)
Antivirus
mse/pands
Browser
palemoon
Other Info
Belkin Fd7050 n USB using Railink RT2870 drivers, more upto date
Back
Top