Windows 10 Recovery Tools - Bootable Rescue Disk


  1. Posts : 80
    W8.1 x64
       #841

    Nevermind, figured it out, but how to add my own apps?
      My Computer

  2. f14tomcat's Avatar
    Posts : 53,152
    Multi-boot Windows 10 - RTM, RP, Beta, and Insider
       #842

    cereberus said:
    Many thanks - looking at this, I was so close when I tried it but did not quite get all commands right.:)
    it
    I will give this a whirl.

    EDIT: It worked fine - many thanks Kyhi. Just a suggestion - it might be worth adding these batch files to your home post #1?

    Cheers

    cereberus
    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!)

    Windows 10 Recovery Tools - Bootable Rescue Disk-2017-01-24_04h23_56.pngWindows 10 Recovery Tools - Bootable Rescue Disk-20170124_042813-large-.jpg
      My Computers

  3. cereberus's Avatar
    Posts : 12,014
    Windows10
       #843

    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.
      My Computer

  4. kado897's Avatar
    Posts : 39,476
    Windows 10 Home 64bit v20H2 and insider builds
       #844

    cereberus said:
    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.
    The W7 boot menu appears right at the start of the boot process, The W10 boot menu seems to be just before logon.
      My Computer

  5. Kyhi's Avatar
    Posts : 3,550
    Windows 3.1 to Windows 10
    Thread Starter
       #845

    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
    Code:
    @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
    PESE_UEFI_BOOT-new.cmd
    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 09:59.
      My Computer

  6. cereberus's Avatar
    Posts : 12,014
    Windows10
       #846

    Kyhi said:
    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
    Code:
    @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
    PESE_UEFI_BOOT-new.cmd
    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
    Thanks for the explanation. I set it as false and now I get the graphical ui but now I understand how it works, I am tempted to revert to old style menus as it is much quicker on my pc - adds 10-15 seconds to boot time.

    Cheers

    C.
      My Computer


  7. Posts : 2
    windows 10
       #847

    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
      My Computer

  8. cereberus's Avatar
    Posts : 12,014
    Windows10
       #848

    aazard said:
    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.
      My Computer


  9. Posts : 2
    win 10_64
       #849

    Hi, to all
    I have a little experience with WinPeSE since win7. Can someone send me a link where I can find the scripts used by Kyhi in
    Win14393PESE_x86 ISO v170116?

    @Kyhi very nice work

    Thanks in advance

    alex

    Last edited by valexvo; 26 Jan 2017 at 13:56.
      My Computer

  10. Kyhi's Avatar
    Posts : 3,550
    Windows 3.1 to Windows 10
    Thread Starter
       #850

    TheOven.org
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:50.
Find Us




Windows 10 Forums