Fix Windows Recovery Environment (WinRE) Problems
In this article
To fix Windows Recovery Environment (WinRE) problems, first try re-enabling WinRE with the command reagentc /enable in an elevated Command Prompt. If that fails, check the WinRE image file and partition, then use Windows installation media to repair or reinstall WinRE. WinRE is the built-in recovery tool that lets you access startup repair, system restore, and reset options when Windows won't boot. Problems usually mean WinRE is disabled, its image is missing or corrupt, or the recovery partition is damaged. You'll need an administrator account and, for some steps, Windows installation media (a USB drive or DVD) matching your Windows version. Labels in Settings and Command Prompt can differ slightly by Windows version, device, or region.
What You'll Need
- A Windows PC with an administrator account.
- Windows installation media (USB or DVD) for the same version and edition as your installed Windows—create it with the Media Creation Tool from Microsoft's website if you don't have one.
- About 30–60 minutes of time and a backup of important files (some steps can affect system files).
Step-by-Step
- Check if WinRE is enabled. Open Command Prompt as administrator (search “cmd” in Start, right-click, choose Run as administrator). Type
reagentc /infoand press Enter. Look for “Windows Recovery Environment: Enabled” or “Disabled”. If disabled, go to step 2. If enabled but WinRE still fails, skip to step 4. - Enable WinRE. In the same elevated Command Prompt, type
reagentc /enableand press Enter. This re-registers WinRE with Windows. Restart and test by holding Shift while clicking Restart from the Start menu, or by runningshutdown /r /o. - If enabling fails, check the WinRE image file. The file is usually at
C:\Windows\System32\Recovery\Winre.wim. In File Explorer, enable “Hidden items” on the View tab, then navigate there. If the file is missing, you'll need to copy it from installation media (see step 5). If it exists but is corrupt, you can replace it from thesourcesfolder of the installation media (the file is namedwinre.wimthere). - Verify the recovery partition. Open Disk Management (right-click Start > Disk Management). Look for a partition labeled “Recovery” or with a size around 500 MB–1 GB. If it's missing or full, WinRE may not work. You can create space using
diskpartbut that's advanced; instead, use the installation media repair steps in step 5. - Repair WinRE using installation media. Insert your Windows USB or DVD and boot from it (change boot order in BIOS/UEFI or use the one-time boot menu). On the setup screen, choose “Repair your computer” > Troubleshoot > Advanced options > Command Prompt. In the recovery Command Prompt, run
diskpart, thenlist disk,select disk 0(replace 0 with your system disk),list partition, and identify the recovery partition (usually type “Recovery”). Then typeexitto leave diskpart. Usereagentc /infoto see the current WinRE status. To reinstall WinRE from media, copy thewinre.wimfrom the media'ssourcesfolder toC:\Windows\System32\Recovery\Winre.wim(you may need to take ownership of the folder first). Then runreagentc /setreimage /path C:\Windows\System32\Recoveryandreagentc /enable. - Run startup repair. From the installation media's Advanced options, choose Startup Repair. This can fix boot issues that prevent WinRE from loading. Let it complete and restart.
- Test WinRE. After any repair, restart normally, then hold Shift while clicking Restart from the Start menu. You should see the Choose an option screen. If not, repeat step 5 or consider resetting Windows (see Troubleshooting).
Common Mistakes
- Running
reagentccommands in a normal Command Prompt instead of an elevated one—they will fail with “access denied”. - Using installation media for a different Windows version or edition; WinRE files must match your installed system.
- Deleting or resizing the recovery partition without proper tools—this can break WinRE and cause boot problems.
- Forgetting to back up important files before making system-level changes.
Tips
- Always create a system restore point before modifying recovery settings (search “Create a restore point” in Start).
- Keep your installation media handy—it's your best repair tool when WinRE fails.
- If you use a third-party partition manager, avoid touching the recovery partition unless you know exactly what you're doing.
- Regularly check
reagentc /infoto confirm WinRE is enabled, especially after major Windows updates.
Troubleshooting
If WinRE still doesn't work after the steps above, try these in order:
- Check disk errors: In an elevated Command Prompt, run
chkdsk C: /fand restart to schedule a scan. File system errors can prevent WinRE from loading. - Run System File Checker: Type
sfc /scannowin an elevated Command Prompt. This repairs corrupted Windows files that WinRE depends on. - Use DISM: Run
DISM /Online /Cleanup-Image /RestoreHealthto repair the system image. - Reset Windows: If nothing else works, back up your files and use Settings > Update & Security > Recovery > Reset this PC. Choose “Keep my files” to reinstall Windows while preserving personal data. This removes apps and settings but can restore WinRE. Warning: “Remove everything” deletes all personal files.
- Reinstall Windows: As a last resort, perform a clean install from installation media. This wipes the drive, so back up first.
Frequently Asked Questions
What causes WinRE to become disabled?
Common causes include a failed Windows update, a corrupted WinRE image, or changes to the recovery partition (such as resizing or deleting it). Sometimes third-party backup or partitioning tools disable WinRE.
Can I fix WinRE without installation media?
Yes, if the problem is simply that WinRE is disabled—running reagentc /enable often fixes it. For missing or corrupt files, installation media is usually required to replace them.
Will enabling WinRE delete my files?
No, enabling WinRE does not affect your personal files. However, always back up important data before making system changes.
How do I access WinRE if Windows won't boot?
If Windows fails to start, it may automatically enter WinRE after a few failed boot attempts. If not, boot from installation media and choose “Repair your computer” to access the recovery options.
Is it safe to delete the recovery partition?
No, deleting the recovery partition will break WinRE and may prevent you from using recovery tools. Only do so if you have installation media and are prepared to recreate it.