Quantcast
Channel: Setup Deployment forum
Viewing all articles
Browse latest Browse all 2818

WinPE Boot: Stuck at WPEINIT after PXE boot loads wim

$
0
0

Hi There,

I have a PXE boot server that is in testing at the moment.  I have a script that runs to create a wim file of someones computer and collects the required applications they needs and stores it on our server.

During this process it also uploads a selection on our PXE boot server (debian based) for them to choose their newest install from. (This has been chosen as there are only 7 of us in the company - all IT based people).  When the Windows 7 (wim) image is selected it loads perfectly fine into iPXE which then loads WinPE.

It's at this point I get a black cmd console with wpeinit in there and nothing loading.  Can some one please advise?

Here is the snippet of code I use to mount and unmount the computer and gab the files i need

// ARCH setting the input for ARCH will be (use can choose)
// BASEDIR sets the location when it will be temp stored (C:\ or D:\ ect)
// NAME is what they choose to call it (e.g. Bob)
set /p ARCH=Choose the architecture (x86 or amd64):
set /p BASEDIR=Select where it will be temporarily stored:
set /p NAME=Name the folder:

// preset paths to make typing easier
set WAIKPATH=%ProgramFiles%\Windows AIK
set PEPATH=%BASEDIR%\winpe_%ARCH%
set TFTPPATH=%BASEDIR%\bootfiles
set BCDSTORE=%TFTPPATH%\BCD

// This is the work of mounting imagex
cd "%WAIKPATH%\Tools\PETools"
echo "Copying the PE Files"
call copype %ARCH% %PEPATH%
echo "Mounting the PE image with imagex"

// Creating the BCD store per the walkthough on techtalk
bcdedit /createstore %BCDSTORE%
bcdedit /store %BCDSTORE% /create {ramdiskoptions} /d "Ramdisk Options"
bcdedit /store %BCDSTORE% /set {ramdiskoptions} ramdisksdidevice Boot
bcdedit /store %BCDSTORE% /set {ramdiskoptions} ramdisksdipath  \Boot\boot.sdi
for /f "Tokens=3" %%x in ('bcdedit /store %BCDSTORE% /create /d "Windows 7 Installation" /application osloader') do set GUID=%%x
bcdedit /store %BCDSTORE% /set %GUID% systemroot \Windows
bcdedit /store %BCDSTORE% /set %GUID% detecthal Yes
bcdedit /store %BCDSTORE% /set %GUID% winpe Yes
bcdedit /store %BCDSTORE% /set %GUID% osdevice ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
bcdedit /store %BCDSTORE% /set %GUID% device ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
bcdedit /store %BCDSTORE% /create {bootmgr} /d "Windows 7 Boot Manager"
bcdedit /store %BCDSTORE% /set {bootmgr} timeout 30
bcdedit /store %BCDSTORE% /set {bootmgr} displayorder %GUID%
bcdedit /store %BCDSTORE%

// Here I copy the "required folders" for wimbooting on my PXE server
md %TFTPPATH%\fonts
copy %PEPATH%\ISO\boot\fonts\*.* %TFTPPATH%\fonts

md %BASEDIR%\%NAME%
md %BASEDIR%\%NAME%\boot
md %BASEDIR%\%NAME%\sources

copy %TFTPPATH%\bootmgr.exe %BASEDIR%\%NAME%
copy %TFTPPATH%\BCD %BASEDIR%\%NAME%\boot\bcd
copy %TFTPPATH%\boot.sdi %BASEDIR%\%NAME%\boot
copy %TFTPPATH%\winpe.wim %BASEDIR%\%NAME%\sources\boot.wim
// Unmount image
imagex /unmount mount

Also this is just a very small snippet of 4 batch files that run.

This comes out of the main one, which calls 1 more and starts another. The one it calls is where users can add additional applications to it, where the one it starts deletes all files from the "temp" store location set under "%BASEDIR%. This batch in turn calls the final one which copies and moves all files to the server and inputs the relevant config entries into the windows7 config file.

As I mentioned before all this works perfectly fine except the last step which does nothing.

Any help appriciated


Viewing all articles
Browse latest Browse all 2818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>