Skip to content

Instantly share code, notes, and snippets.

@shanky061
Last active May 10, 2023 13:53
Show Gist options
  • Save shanky061/5b3e0e0f5debb2c458e6 to your computer and use it in GitHub Desktop.
Save shanky061/5b3e0e0f5debb2c458e6 to your computer and use it in GitHub Desktop.
Create WinRE USB manually

#Create WinRE USB manually from windows files

This is a Gist to creating a bootable Recovery Drive - USB disk that boots right into Windows Recovery Environment.

You just have to format the USB disk in FAT32, make it active. And copy files in following hierarchy.

###WinRE Files

  • boot/

    • fonts/

      Copy all files from C:\Windows\Boot\Fonts and paste it in this folder.

    • resources/

      • bootres.dll

        Source: C:\Windows\Boot\Resources\bootres.dll

    • BCD

      Source: C:\Windows\Boot\DVD\PCAT\BCD

    • boot.sdi

      Source: C:\Windows\Boot\DVD\PCAT\boot.sdi

  • efi/

    • boot/

      • bootx64.efi

        Source: C:\Windows\Boot\EFI\bootmgfw.efi

    • microsoft/

      • boot/
        • fonts/

          Copy all files from C:\Windows\Boot\Fonts and paste it in this folder.

        • resources/

          • bootres.dll

            Source: C:\Windows\Boot\Resources\bootres.dll

        • BCD

          Source: C:\Windows\Boot\DVD\EFI\BCD

  • sources/

    • boot.wim

      Find winre.wim in C:\Recovery\WindowsRE\ OR C:\Windows\System32\Recovery\ and paste it as boot.wim.

  • bootmgr

    Source: C:\Windows\Boot\PCAT\bootmgr

  • bootmgr.efi

    Source: C:\Windows\Boot\EFI\bootmgr.efi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment