Windows 10 Recovery Tools - Bootable Rescue Disk


  1. Posts : 4,142
    Windows 3.1 to Windows 11
    Thread Starter
       #1181

    Gonna Say this Rescue media Does Not contain >

    however when I try to use mbr2gpt in his rescue WinPE it doesn't recognize the tool
    Although I do Have It in PE and see no need for it...
    MS is using that Tool to UPGRADE PC's with MBR Disks to GPT Disks if PC Compatible
    Yet Another unknown windows 10 upgrade feature

    Here are 2 batch Files for use with the mbr2gpt tool > place them in the same folder as exe...
    The batch will validate and report any disk type errors before conversion
    The mbr2gpt.exe can be found windows/system32 folder beginning with version 1703 up

    Windows PE Version (Run in PE)
    Code:
    @echo off
    title MS_MBR2GPT_CMD  v17.11.19
    rem ================== YY.MM.DD
    color 17
    set "params=%*"
    setlocal EnableDelayedExpansion
    cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
    If not exist "%userprofile%\Desktop\MBR2GPT" (
    md "%userprofile%\Desktop\MBR2GPT" 
    wmic diskdrive where "MediaType='Fixed Hard Disk Media'" get Index,Model,Size>>"%userprofile%\Desktop\mbr2gpt\Fixed_HardDisk.txt"
    )
    :startmenu
    cls
    echo.
    echo ===============================================================================
    wmic diskdrive where "MediaType='Fixed Hard Disk Media'" get Index,Model,Size
    echo ===============================================================================
    set /p _index= ^> Enter The Disk Index Number to Validate-Convert: 
    if [%_index%]==[] echo.&echo Invalid User Input&echo.&pause&goto :startmenu
    echo ===============================================================================
    cls
    echo.
    echo ===============================================================================
    echo.      WOULD YOU LIKE TO CONTINUE TO VALIDATE THE SELECTED DISK %_index% ?
    echo.
    echo.      NOTE: No Changes Will Be Made To The Disk %_index% At This Time
    echo.
    echo.      Press 0 - TO EXIT PROGRAM
    echo.      Press 1 - TO CONTINUE TO VALIDATE THE SELECTED DISK %_index%
    echo ===============================================================================                  
    set /p userinp1= ^> Enter Your Option: 
    if [%userinp1%]==[] echo.&echo Invalid User Input&echo.&pause&goto :startmenu
    if %userinp1% gtr 1 echo.&echo Invalid User Selection&echo.&pause&goto :startmenu
    if %userinp1%==0 goto :done
    if %userinp1%==1 (
    cls
    echo.
    echo ===============================================================================                  
    mbr2gpt /validate /disk:%_index% /logs:%userprofile%\Desktop\mbr2gpt
    echo ===============================================================================
    )
    echo.
    goto :%errorlevel%
    exit
    :convert
    cls
    echo.
    echo ===============================================================================
    echo.
    echo.            --------------WARNING----------WARNING-------------
    echo.      Once Converted The Disk Will No Longer Boot in CSM-Legacy Mode.
    echo.           Make Sure To Set Your BIOS Settings To Boot UEFI Mode
    echo.
    echo ===============================================================================
    echo ===============================================================================
    echo.      WOULD YOU LIKE TO CONTINUE TO CONVERT THE SELECTED DISK %_index% ?
    echo.
    echo.      Press 0 - TO EXIT PROGRAM
    echo.      Press 1 - TO CONTINUE TO CONVERT THE SELECTED DISK %_index%
    echo ===============================================================================                  
    set /p userinp2= ^> Enter Your Option: 
    if [%userinp2%]==[] echo.&echo Invalid User Input&echo.&pause&goto :convert
    if %userinp2% gtr 1 echo.&echo Invalid User Selection&echo.&pause&goto :convert
    if %userinp2%==0 goto :done
    if %userinp2%==1 (
    cls
    echo.
    echo ===============================================================================
    mbr2gpt /convert /disk:%_index% /logs:%userprofile%\Desktop\mbr2gpt
    echo ===============================================================================
    )
    echo.
    If %errorlevel% equ 0 (goto :done) else (goto :%errorlevel%)
    exit
    :0
    goto convert
    :1
    echo Conversion was canceled by the user. 
    echo.&pause&goto startmenu
    :2
    echo Conversion failed due to an internal error. 
    echo.&pause&goto startmenu
    :3
    echo Conversion failed due to an initialization error. 
    echo.&pause&goto startmenu
    :4
    echo Conversion failed due to invalid command-line parameters. 
    echo.&pause&goto startmenu
    :5
    echo Conversion failed due to error reading the geometry
    echo and layout of the selected disk. 
    echo.&pause&goto startmenu
    :6
    echo Conversion failed because one or more volumes on the
    echo disk is encrypted. 
    echo.&pause&goto startmenu
    :7
    echo Conversion failed because the geometry and layout of
    echo the selected disk do not meet requirements. 
    echo.&pause&goto startmenu
    :8
    echo Conversion failed due to error while creating the
    echo EFI system partition. 
    echo.&pause&goto startmenu
    :9
    echo Conversion failed due to error installing boot files. 
    echo.&pause&goto startmenu
    :10
    echo Conversion failed due to error while applying GPT layout. 
    echo.&pause&goto startmenu
    :100
    echo Conversion to GPT layout succeeded, but some boot
    echo configuration data entries could not be restored. 
    echo.&pause&goto startmenu
    :done
    cls
    if exist "%userprofile%\Desktop\mbr2gpt" rmdir /s /q "%userprofile%\Desktop\mbr2gpt"
    echo.
    echo ===============================================================================
    echo.
    echo.   MS_MBR2GPT_CMD
    echo.   Written By KYHI
    echo.   NOV 19,2017
    echo.
    echo ===============================================================================
    timeout /t 5 >nul
    exit
    Windows Allow Full OS Version (Run within Windows)
    Code:
    @echo off
    title MS_MBR2GPT_CMD  v17.11.19
    rem ================== YY.MM.DD
    color 17
    set "params=%*"
    setlocal EnableDelayedExpansion
    cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
    If not exist "%userprofile%\Desktop\MBR2GPT" (
    md "%userprofile%\Desktop\MBR2GPT" 
    wmic diskdrive where "MediaType='Fixed Hard Disk Media'" get Index,Model,Size>>"%userprofile%\Desktop\mbr2gpt\Fixed_HardDisk.txt"
    )
    :startmenu
    cls
    echo.
    echo ===============================================================================
    wmic diskdrive where "MediaType='Fixed Hard Disk Media'" get Index,Model,Size
    echo ===============================================================================
    set /p _index= ^> Enter The Disk Index Number to Validate-Convert: 
    if [%_index%]==[] echo.&echo Invalid User Input&echo.&pause&goto :startmenu
    echo ===============================================================================
    cls
    echo.
    echo ===============================================================================
    echo.      WOULD YOU LIKE TO CONTINUE TO VALIDATE THE SELECTED DISK %_index% ?
    echo.
    echo.      NOTE: No Changes Will Be Made To The Disk %_index% At This Time
    echo.
    echo.      Press 0 - TO EXIT PROGRAM
    echo.      Press 1 - TO CONTINUE TO VALIDATE THE SELECTED DISK %_index%
    echo ===============================================================================                  
    set /p userinp1= ^> Enter Your Option: 
    if [%userinp1%]==[] echo.&echo Invalid User Input&echo.&pause&goto :startmenu
    if %userinp1% gtr 1 echo.&echo Invalid User Selection&echo.&pause&goto :startmenu
    if %userinp1%==0 goto :done
    if %userinp1%==1 (
    cls
    echo.
    echo ===============================================================================                  
    mbr2gpt /validate /disk:%_index% /allowfullOS /logs:%userprofile%\Desktop\mbr2gpt
    echo ===============================================================================
    )
    echo.
    goto :%errorlevel%
    exit
    :convert
    cls
    echo.
    echo ===============================================================================
    echo.
    echo.            --------------WARNING----------WARNING-------------
    echo.      Once Converted The Disk Will No Longer Boot in CSM-Legacy Mode.
    echo.           Make Sure To Set Your BIOS Settings To Boot UEFI Mode
    echo.
    echo ===============================================================================
    echo ===============================================================================
    echo.      WOULD YOU LIKE TO CONTINUE TO CONVERT THE SELECTED DISK %_index% ?
    echo.
    echo.      Press 0 - TO EXIT PROGRAM
    echo.      Press 1 - TO CONTINUE TO CONVERT THE SELECTED DISK %_index%
    echo ===============================================================================                  
    set /p userinp2= ^> Enter Your Option: 
    if [%userinp2%]==[] echo.&echo Invalid User Input&echo.&pause&goto :convert
    if %userinp2% gtr 1 echo.&echo Invalid User Selection&echo.&pause&goto :convert
    if %userinp2%==0 goto :done
    if %userinp2%==1 (
    cls
    echo.
    echo ===============================================================================
    mbr2gpt /convert /disk:%_index% /allowfullOS /logs:%userprofile%\Desktop\mbr2gpt
    echo ===============================================================================
    )
    echo.
    If %errorlevel% equ 0 (goto :done) else (goto :%errorlevel%)
    exit
    :0
    goto convert
    :1
    echo Conversion was canceled by the user. 
    echo.&pause&goto startmenu
    :2
    echo Conversion failed due to an internal error. 
    echo.&pause&goto startmenu
    :3
    echo Conversion failed due to an initialization error. 
    echo.&pause&goto startmenu
    :4
    echo Conversion failed due to invalid command-line parameters. 
    echo.&pause&goto startmenu
    :5
    echo Conversion failed due to error reading the geometry
    echo and layout of the selected disk. 
    echo.&pause&goto startmenu
    :6
    echo Conversion failed because one or more volumes on the
    echo disk is encrypted. 
    echo.&pause&goto startmenu
    :7
    echo Conversion failed because the geometry and layout of
    echo the selected disk do not meet requirements. 
    echo.&pause&goto startmenu
    :8
    echo Conversion failed due to error while creating the
    echo EFI system partition. 
    echo.&pause&goto startmenu
    :9
    echo Conversion failed due to error installing boot files. 
    echo.&pause&goto startmenu
    :10
    echo Conversion failed due to error while applying GPT layout. 
    echo.&pause&goto startmenu
    :100
    echo Conversion to GPT layout succeeded, but some boot
    echo configuration data entries could not be restored. 
    echo.&pause&goto startmenu
    :done
    cls
    if exist "%userprofile%\Desktop\mbr2gpt" rmdir /s /q "%userprofile%\Desktop\mbr2gpt"
    echo.
    echo ===============================================================================
    echo.
    echo.   MS_MBR2GPT_CMD
    echo.   Written By KYHI
    echo.   NOV 19,2017
    echo.
    echo ===============================================================================
    timeout /t 5 >nul
    exit
    Last edited by Kyhi; 22 Dec 2017 at 15:11.
      My Computer


  2. Posts : 4
    Win10 Build-1709
       #1182

    Merry Christmas


    Thank you. I will learn to do as you quite soon. Then I'll appear .. not so helpless
      My Computer


  3. Posts : 4,142
    Windows 3.1 to Windows 11
    Thread Starter
       #1183

    @topgundcp
    Here are 3 versions of Firefox that I used in WinPE
    All Versions Just Tested Within Same PE Session
    version 52.5.2.6549 > Mozilla Firefox ESR works, Video and Audio, without Flash Player
    version 55.0.2.6435 > Mozilla Firefox works, Video and Audio, without Flash Player
    version 57.0.2.6549 > Firefox Quantum works Video, No Audio, without Flash Player
    Since the windows enviroment did not change,
    there has to be a missing file dependancie for Firefox Quantum

    WMP works great - although no wav file association
      My Computer


  4. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #1184

    @Kyhi
    Here are 3 versions of Firefox that I used in WinPE
    All Versions Just Tested Within Same PE Session
    version 52.5.2.6549 > Mozilla Firefox ESR works, Video and Audio, without Flash Player
    version 55.0.2.6435 > Mozilla Firefox works, Video and Audio, without Flash Player
    version 57.0.2.6549 > Firefox Quantum works Video, No Audio, without Flash Player
    Since the windows enviroment did not change,
    there has to be a missing file dependancie for Firefox Quantum
    We had this problem with FF V. 47 before and Wintypes.dll was missing. I added this dll to V. 57 and still no go.

    WMP works great - although no wav file association
    We can add the file association for wav later on. I also have updated the K-lite codec which include the tweak tool, I'll send you a copy. In order for WMP to display subtitle for MP4, MKV. You have to disable Media Foundation.
      My Computer


  5. Posts : 4,142
    Windows 3.1 to Windows 11
    Thread Starter
       #1185

    Like I said it has to be a Quantum Issue with a different file requirement...
    As all prior versions work with the current file requirements...
    Without adding Flash player....... And Flash Player No Help to Quantum, either..

    added file association > RegWrite,HKLM,0x1,Tmp_Software\Classes\.wav,,WMP
      My Computer


  6. Posts : 4,142
    Windows 3.1 to Windows 11
    Thread Starter
       #1186

    Also found 4 other non-related issues >>

    *************************************
    Build/2-Config.script
    Title=2 - Shell & Config
    Version=094
    Search for Line >>
    Code:
    If,Not,%ExitCode%,Equal,0,Call,Echo,"EnablePE10 return: %ExitCode%",Warn,,MessageError,,Halt
    Replace with Corrected Code Line >>
    Code:
    If,Not,%ExitCode%,Equal,0,run,%ScriptFile%,HaltErrorMsg,"EnablePE10.exe Returned Error Code: %ExitCode%"
    Add the following [Section] to script >>
    Code:
    [HaltErrorMsg]
    Echo,#1,Warn
    Message,#1
    If,ExistFile,%tools%\HiveUnload.exe,ShellExecute,Hide,%tools%\HiveUnload.exe,"/HKLM /Target:%target_sys%\config"
    Halt,#1
    *********************************
    Build/CDDrive_X_Y.script
    Title=CdDrive - X: - Y:
    Version=026
    Under [Process_Normal]
    Search for line >>
    Code:
    Else,Begin
    Replace with Corrected Code Line >>
    Code:
    If,%AllRam_CheckBox%,Equal,True,Begin
    **************************************
    Components/DotNet.script
    Title=.Net Framework
    Version=030
    Under [Process_Normal]
    Search for Line >>
    Code:
    StrFormat,REPLACE,%ScrollBox_RunFromWhere%,"Run from ","",%Here%
    Replace with Corrected Code Line >>
    Code:
    StrFormat,REPLACE,%ScrollBox_RunFromWhere%,"Run from ","",%Here%
    If,Not,%Here%,Equal,Normal,RunFrom,%Here%
    ****************************************
    Components/Search.script
    Title=Search
    Version=017
    Search for Line >>
    Code:
    Call,FileCopy,%Source_sys%\prm*.dll,%Target_Sys%
    Replace with corrected code line >>
    Code:
    FileCopy,%Source_sys%\prm*.dll,%Target_Sys%
      My Computer


  7. Posts : 7,606
    Windows 10 Home 20H2
       #1187
      My Computer


  8. Posts : 5,478
    2004
       #1188

    Matthew Wai said:
    Do Windows 10 Recovery Tools include a tool like this
    No. You have to boot memtest - that is the point. You can't run it from another OS - not Windows, PE or anything else.

    See their site for details
      My Computer


  9. Posts : 4
    Windows 10 LTSC (1809)
       #1189

    topgundcp said:
    We had this problem with FF [..]
    There's a pretty cool user.js for Firefox, moved to GitHub after being hosted on gHacks:

    Code:
    https://www.ghacks.net/2017/04/13/ghacks-user-js-goes-github/
    Code:
    https://github.com/ghacksuserjs/ghacks-user.js/
    It does require quite a bit of customization, from the default, depending on the need(s). Something like Notepad++ can be used for editing, where its JavaScript language can be selected for highlighting the code.
      My Computer


  10. Posts : 14
    Windows 10 Home
       #1190

    a litle error creating the iso 32/64 of the tools


    Hi everyone

    here at TentForums is my first post.
    I don't know if someone already had the same problem.
    ok I dowload both ISOs and I want to make a boot USB pen, because I still have several computers with win 10 32 bits...

    with the small utility made by Kyhi, I run the 6 option in the menu of the ModifyWinPESE.cmd

    it works as suppose, but when the oscdimg is creating the final ISO file with 2Gb, it gives me a error 3
    (it can´t create the iso...)
    and of course I have in that drive more than 400Gb of free space..

    this machine have an intel 4 cpu, 8 GB, Win 10 Home 1709 (16299.125)
    uefi bios

    if any one knows an answer, or is already answered please point that to me

    tanks in advanced
      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 04:28.
Find Us




Windows 10 Forums