New
#841
Nevermind, figured it out, but how to add my own apps?
Nevermind, figured it out, but how to add my own apps?
No better, just an alternative if you don't want to mess with the boot menu. Copy all the files to a 2GB partition and remove the drive letter. On restart or power up, drill down to "Use a device". It will show up like this, or similar..... (Yeah, I know I have of bunch of renegade 450MB's...haven't cleaned up recently!)
I have a strange issue now since using above batch file. If I shutdown pc and restart, it shows the 8/10 metro bootloader but if I restart, it shows old style 7 bootloader.
I have tried using bcdedit commands and easybcd but nothing works.
If I delete bcd and rebuild it works fine until I add a winpe boot entry.
As an aside, my pc (lenovo) accesses the w7 menu much faster than the metro style.
Because of this line in batch > bcdedit /set {bootmgr} displaybootmenu True
It shows the standard boot menu
not the new style boot menu > If set as "False" it shows new style boot menu..
Or just "REM" the line as below..
rem bcdedit /set {bootmgr} displaybootmenu True
As stated above the Usual method is PC boots the Standard Boot menu -
then rolls over to display New Style boot Menu > That line prevents the rollover (=Faster Boot Time)
I also edit the batch to allow user to INPUT drive letter > rather then edit batch file...
--------------------------------------------------------------------------------------------------
1) Create a Small FAT32 > 2GB < Partition
- I have also used an 8GB-32GB Partition to be able to mount PE Boot.wim and be able to Capture User Modifications while within PE
- I have also changed Modify-PESE to use Wimlib-Imagex instead of DISM
2) Copy ISO Files to partition
3) Run Batch File to add to host Boot Menu
PESE_MBR_BOOT-New.cmd
PESE_UEFI_BOOT-new.cmdCode:@echo off title WinPESE MBR BOOT MENU OPTION v17.01.24 rem =============================== YY.MM.DD color 17 :start cls echo. echo =============================================================================== echo. YOU HAVE CHOOSEN TO ADD A WINPESE BOOTABLE PARTITION TO YOUR HOST echo =============================================================================== echo. set /p drvlttr= ^> ENTER THE DRIVE LETTER ASSIGNED TO THE WINPESE PARTITION: if [%drvlttr%]==[] echo.&echo Invalid User Input&echo.&echo The Partition Drive Letter Can Not Be Blank&echo.&pause&goto :start if not exist %drvlttr%:\sources\boot.wim echo.&echo Invalid User Input&echo.&echo The %drvlttr%:\sources\boot.wim Was Not Found&echo.&pause&goto :start cls echo. echo Configuring MBR Boot Option for WinPESE Recovery Tools echo -------------------------------------------------------------------------- for /f "tokens=2 delims={}" %%g in ('bcdedit.exe /create /d "WinPESE Recovery" /Device') do (set deviceid={%%g}) echo -------------------------------------------------------------------------- echo DEVICE ID = %deviceid% echo -------------------------------------------------------------------------- bcdedit /set %deviceid% ramdisksdidevice partition=%drvlttr%: bcdedit /set %deviceid% ramdisksdipath \boot\boot.sdi for /f "tokens=2 delims={}" %%g in ('bcdedit.exe /create /d "WinPESE Recovery" /application osloader') do (set guid={%%g}) echo -------------------------------------------------------------------------- echo GUID = %guid% echo -------------------------------------------------------------------------- bcdedit /set %guid% device ramdisk=[%drvlttr%:]\sources\boot.wim,%deviceid% bcdedit /set %guid% osdevice ramdisk=[%drvlttr%:]\sources\boot.wim,%deviceid% bcdedit /set %guid% systemroot \windows bcdedit /set %guid% path \Windows\system32\boot\winload.exe bcdedit /set %guid% winpe yes bcdedit /set %guid% detecthal yes bcdedit /displayorder %guid% /addlast bcdedit /set {bootmgr} displaybootmenu True bcdedit /set {bootmgr} timeout 10 echo. echo DONE... Reboot your PC timeout /t 5 >nul
Code:@echo off title WinPESE UEFI BOOT MENU OPTION v17.01.24 rem ================================ YY.MM.DD color 17 :start cls echo. echo =============================================================================== echo. YOU HAVE CHOOSEN TO ADD A WINPESE BOOTABLE PARTITION TO YOUR HOST echo =============================================================================== echo. set /p drvlttr= ^> ENTER THE DRIVE LETTER ASSIGNED TO THE WINPESE PARTITION: if [%drvlttr%]==[] echo.&echo Invalid User Input&echo.&echo The Partition Drive Letter Can Not Be Blank&echo.&pause&goto :start if not exist %drvlttr%:\sources\boot.wim echo.&echo Invalid User Input&echo.&echo The %drvlttr%:\sources\boot.wim Was Not Found&echo.&pause&goto :start cls echo. echo Configuring UEFI Boot Option for WinPESE Recovery Tools echo -------------------------------------------------------------------------- for /f "tokens=2 delims={}" %%g in ('bcdedit.exe /create /d "WinPESE Recovery" /Device') do (set deviceid={%%g}) echo -------------------------------------------------------------------------- echo DEVICE ID = %deviceid% echo -------------------------------------------------------------------------- bcdedit /set %deviceid% ramdisksdidevice partition=%drvlttr%: bcdedit /set %deviceid% ramdisksdipath \boot\boot.sdi for /f "tokens=2 delims={}" %%g in ('bcdedit.exe /create /d "WinPESE Recovery" /application osloader') do (set guid={%%g}) echo -------------------------------------------------------------------------- echo GUID = %guid% echo -------------------------------------------------------------------------- bcdedit /set %guid% device ramdisk=[%drvlttr%:]\sources\boot.wim,%deviceid% bcdedit /set %guid% osdevice ramdisk=[%drvlttr%:]\sources\boot.wim,%deviceid% bcdedit /set %guid% systemroot \windows bcdedit /set %guid% path \Windows\system32\boot\winload.efi bcdedit /set %guid% winpe yes bcdedit /set %guid% detecthal yes bcdedit /displayorder %guid% /addlast bcdedit /set {bootmgr} displaybootmenu True bcdedit /set {bootmgr} timeout 10 echo. echo DONE... Reboot your PC timeout /t 5 >nul
Last edited by Kyhi; 24 Jan 2017 at 10:59.
could someone explain in detail how to edit this PE? i would like to make more desktop shortcuts for existing tools and add some more tools to it but honestly i'm at a loss exactly how to do so. Mainly i would like to add an additional AV scanner, an additional malware scanner, roadkills unstopable coppier and Ccleaner. but i'd like to be able to edit it when needed without needing assistance each time
Look back at post #308.
You basically mount the wim file, and copy folders in program files to the same in the mounted drives. Then unmount it and copy boot.wim to flash drive.
Then boot from it and setup the various shortcuts in default\desktop folder pointing to executables in x drive.
Then mount boot.wim again as before, copy shortcuts across to mounted image, and unmount.
I had to do it in two steps or else shortcuts do not point to x directory. There may be easier ways but this works for me.