Share via

Error 8007139f when attempting WinRe operations

J 0 Reputation points
2026-05-05T06:54:13.21+00:00

Just today my computer got stuck in an endless loop of entering and exiting WinRe. I have tried the continue to desktop, command prompt, startup recovery, reset w/ keep my data and w/start from scratch. However, anytime that I try to perform an operation it says something didn’t load properly, giving the 8007139f code and forcing the computer to restart. I have tried unplugging peripherals, as well as changing BIOS settings to their factory default, to no avail. Help please? I can provide additional info assuming I can find it.

Windows for home | Windows 11 | Recovery and backup
0 comments No comments

2 answers

Sort by: Most helpful
  1. DaveM121 872.9K Reputation points Independent Advisor
    2026-05-05T07:27:15.4333333+00:00

    If all available recovery options in the Recovery Environment are failing, then , you will need to create a bootable Windows 11 USB on an empty 8GB USB flash drive on another working PC and boot your PC from that, then rather than installing Windows 11, select ‘Repair this Computer’ that will give you access to the Recovery Environment from there

    In the Recovery Environment on the USB, try each available option.

    Click this link:  https://www.microsoft.com/software-download/windows11

    to download the Media Creation Tool to create the bootable USB.

    Then, Boot your PC from the Installation Media you just created.

     

     

    0 comments No comments

  2. Q&A Assist
    2026-05-05T06:54:25.6633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Error 0x8007139f during WinRE actions together with an endless WinRE loop usually means Windows can’t complete startup or recovery because of corruption in boot files, system files, or the Windows image. Use WinRE plus installation media to repair the disk, system files, and boot configuration, then, if needed, reset or reinstall Windows.

    Follow these steps in order:

    1. Force entry to WinRE (if not already there)
      • Power on the PC.
      • As soon as the Windows or OEM logo appears, press and hold the power button to force shutdown.
      • Repeat this twice; on the third boot, Windows should show Automatic Repair → choose Advanced options to reach WinRE.
    2. Try Startup Repair once
      • In WinRE, select TroubleshootAdvanced optionsStartup Repair.
      • Let it complete and see if Windows boots normally.
      • If it still loops or shows 0x8007139f, continue with manual repair.
    3. Boot from Windows installation media and open Command Prompt If the on‑disk WinRE keeps failing with 0x8007139f, use external media:
      • Boot from a USB/DVD with the same Windows version.
      • On the Install Windows screen, select NextRepair your computer.
      • Select TroubleshootAdvanced optionsCommand Prompt.
    4. Check disk and repair file system
      • In Command Prompt, run:
             bcdedit
        
        Note the drive letter shown as osdevice (for example, D:). Use that drive letter in the next commands.
      • Run Check Disk on the system volume:
             chkdsk /f D:
        
      • If Check Disk reports unrepairable errors, further hardware or data‑recovery work may be required before Windows can be fixed.
    5. Run System File Checker (offline)
      • Still in Command Prompt, run:
             sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
        
      • If SFC reports that it found and repaired issues, run it again until it reports no integrity violations.
    6. Repair the Windows image with DISM
      • Run:
             dism /image:D:\ /cleanup-image /restorehealth
        
      • If DISM reports that it repaired issues, run the SFC command from step 5 again.
    7. Rebuild boot configuration (if still not booting)
      • Back in WinRE (from disk or media), open Command Prompt.
      • Run these commands in order:
             bootrec /scanos
             bootrec /rebuildbcd
             bootrec /fixmbr
             bootrec /fixboot
        
      • Close Command Prompt and choose Continue to try booting Windows.
    8. If repairs fail: Reset this PC from WinRE If the system still loops or WinRE operations continue to fail with 0x8007139f after disk, SFC, DISM, and bootrec repairs:
      • Boot into WinRE (from disk or installation media).
      • Select TroubleshootReset this PC.
      • Choose Keep my files first to preserve personal data while reinstalling Windows.
      • If that also fails or loops, use Remove everything or fully reimage the drive as a last resort (this erases apps and data).

    If USB keyboard or mouse do not work in WinRE on a particular Insider build, update to a build where the WinRE USB input issue is fixed, or use a different input method as documented.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.