Quick fix: Open Terminal (Admin) and run reagentc /info to check WinRE status. If disabled or missing, mount a fresh winre.wim from the Windows ISO’s sources folder (install.wim → Windows\System32\Recovery\Winre.wim) to C:\Recovery\WindowsRE\, then run reagentc /enable.
You go to Settings → System → Recovery → Advanced startup and click Restart now. Windows reboots but lands at the regular login screen instead of the blue Recovery menu. Or you try to reset the PC and get “Could not find the recovery environment.” The Windows Recovery Environment (WinRE) is a small separate Windows install in a hidden partition; if its files are missing or its partition reference is broken, recovery options fail.
Affects: Windows 11 (and Windows 10) with damaged or missing WinRE partition.
Fix time: ~30 minutes including ISO download.
What causes this
Windows ships with a Recovery Environment (WinRE) stored in a small (~500 MB) hidden partition after the C: partition. The boot manager references this partition for emergency recovery. Three common ways it breaks: (1) a third-party partition tool deletes or reformats the recovery partition, (2) Windows Update tries to update WinRE and fails partially, leaving an inconsistent state, (3) the boot manager configuration points to a partition that no longer exists.
The fix is to restore the WinRE.wim file in a valid location and re-register it with the boot manager.
Method 1: Re-enable WinRE if it’s simply disabled
The quickest check. WinRE files may be present but disabled.
- Open Terminal (Admin): right-click Start → Terminal (Admin).
- Run:
reagentc /infoOutput shows: Windows RE status, Windows RE location, Boot Configuration Data (BCD) identifier, etc.
- If status is Disabled: run
reagentc /enable. If it succeeds, runreagentc /infoagain to confirm Enabled. - If
reagentc /enablefails with “Could not enable the Windows RE image”, the WinRE.wim file is missing — proceed to Method 2. - Test by going to Settings → System → Recovery → Advanced startup → Restart now. PC should reboot into the blue recovery menu.
If reagentc reported “Enabled” but recovery still doesn’t work, the BCD reference is wrong — see Method 3.
Method 2: Restore the WinRE.wim file from a Windows ISO
For when WinRE.wim is missing or corrupted.
- Download the Windows 11 ISO matching your installed version: microsoft.com/software-download/windows11.
- Mount the ISO: double-click the .iso file in File Explorer (Windows auto-mounts to a virtual drive, e.g., D:).
- Open Terminal (Admin). Extract WinRE.wim from the ISO’s install.wim. Run:
mkdir C:\WIM-mount DISM /Mount-Image /ImageFile:D:\sources\install.wim /Index:1 /MountDir:C:\WIM-mount /ReadOnly(Replace D: with your ISO mount drive.)
- Copy the WinRE.wim out:
mkdir C:\Recovery\WindowsRE copy C:\WIM-mount\Windows\System32\Recovery\Winre.wim C:\Recovery\WindowsRE\Winre.wim - Unmount the source:
DISM /Unmount-Image /MountDir:C:\WIM-mount /Discard - Register the new WinRE location:
reagentc /setreimage /path C:\Recovery\WindowsRE reagentc /enable - Verify:
reagentc /info. Status should be Enabled and location should beC:\Recovery\WindowsRE\.
This restores WinRE without needing the original hidden partition.
Method 3: Repair the recovery partition reference
For when WinRE.wim exists but the boot manager can’t find it.
- Open Diskpart: Terminal (Admin) →
diskpart. - List disks and partitions:
list disk select disk 0 list partitionLook for a small (~500 MB) partition labeled Recovery. Note its number.
- Select and unmask:
select partition N set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac gpt attributes=0x8000000000000001 exit(The GUID is the Recovery partition GPT type ID. Adjust N to match your recovery partition number.)
- Assign a temporary letter to inspect contents:
diskpart→select partition N→assign letter=R. - Check
R:\Recovery\WindowsREforWinre.wim. If present:reagentc /setreimage /path R:\Recovery\WindowsRE /target C:\Windows reagentc /enable - Remove the letter:
diskpart→select volume R→remove letter=R. - Rebuild BCD to make sure the boot loader sees WinRE:
bcdedit /enum /v. Look for a {recoverysequence} entry. If missing, re-runreagentc /enable.
This is the right path when the recovery partition is intact but its references were broken — usually after partition resizing operations.
How to verify the fix worked
- Run
reagentc /info. Output shows Windows RE status: Enabled and a valid Windows RE location. - Open Settings → System → Recovery → Advanced startup → Restart now. PC reboots into the blue recovery menu with options like Troubleshoot → Advanced options → Startup Repair.
- From the recovery menu, click Troubleshoot → Reset this PC. The reset wizard should at least begin — if it errors, you’ll see a specific message rather than “could not find”.
If none of these work
If WinRE can’t be restored via Methods 1–3, the underlying disk is likely failing or the BCD store itself is broken. Test BCD integrity: boot from a Windows 11 install USB (created with Media Creation Tool), choose Repair your computer → Troubleshoot → Command Prompt, run bootrec /rebuildbcd. Last resort full recovery: from the same USB, choose Install now → I don’t have a product key, then on the “What do you want to do?” screen pick Upgrade: Install Windows and keep files, settings, and apps. This re-installs Windows in place, restoring WinRE without wiping data. Hardware test: if WinRE issues recur after every install, the SSD is probably failing — run chkdsk C: /f /r from elevated Command Prompt; multiple bad sectors or remap failures indicate replacement is needed.
Bottom line: reagentc /info tells you if WinRE is missing or just disabled. Most cases are fixed by restoring WinRE.wim from the Windows ISO and re-enabling with reagentc /enable.