How to Create a Windows Recovery Partition
In this article
You can create a Windows recovery partition by using the built-in Reagentc command in an elevated Command Prompt. This action configures the system to use an existing hidden recovery environment or creates one if space permits, allowing you to reset your PC or troubleshoot boot issues without external media. Note that this process modifies system-level partitions and should be performed on a stable Windows installation.
What You'll Need
- A Windows 10 or Windows 11 PC with administrative privileges.
- Command Prompt opened as Administrator.
- Sufficient free space on your primary drive (usually C:).
- A backup of important data, as partitioning operations carry a small risk of data loss.
Step-by-Step
- Create a System Backup: Before modifying partitions, ensure you have a recent backup of your critical files. While the recovery image creation is generally safe, any change to disk structures carries inherent risks.
- Open Command Prompt as Admin: Press the
Windows Key, typecmd, right-click on Command Prompt, and select Run as administrator. If prompted by User Account Control, click Yes. - Check Current Status: Type the following command and press Enter to see if a recovery environment is already configured:
Note the status shown for "Windows Recovery Environment." It may say "Enabled," "Disabled," or "Not Found."reagentc /info - Disable Existing Configuration (If Necessary): If the tool reports that the RE is enabled but you want to rebuild it cleanly, you must first disable it. Run:
Wait for the confirmation message stating the operation completed successfully.reagentc /disable - Enable and Create the Partition: Now, instruct Windows to recreate the recovery environment. Run:
The system will attempt to locate a suitable location on your disk. If a hidden recovery partition exists from a factory install, it may reuse it. If not, and if you have sufficient unallocated space or can shrink your main partition, Windows will attempt to create the necessary structure automatically.reagentc /enable - Verify Creation: Run
reagentc /infoagain. The status should now read Enabled and point to the location of the recovery image (typically\\?\C:\Recovery\WindowsRE\Winre.wim). If it says "Not Found" despite being enabled, the partition might not be properly flagged as active or hidden. - Test the Recovery Environment: To ensure it works, restart your computer. During boot, repeatedly press F12 (or your manufacturer's specific key like F9, Esc, or Del) to access the Boot Menu. Select the UEFI: Built-in EFI Shell or Windows Recovery option if available. Alternatively, go to Settings > System > Recovery and click Restart Now under Advanced Startup to verify access.
Common Mistakes
Skipping the Admin Prompt: Running these commands in a standard user session will result in "Access Denied" errors. Always ensure the terminal has elevated privileges.
Ignoring Disk Space: If your C: drive is nearly full, Windows may fail to create the recovery partition because it cannot allocate the required ~500MB to 1GB of space. Ensure at least 1GB of free space is available before running /enable.
Assuming Factory Partitions Are Safe to Delete: Many PCs come with pre-existing recovery partitions. Do not delete these via Disk Management unless you are certain you have an external recovery drive, as doing so removes the ability to factory-reset the device natively.
Tips
Use External Media for Safety: The built-in reagentc method relies on internal partitions. For maximum reliability, especially after major hardware changes, consider creating a Windows Installation Media USB using Microsoft's Media Creation Tool. This provides a clean, version-specific recovery environment independent of your internal drive health.
Keep Drivers Updated: The recovery environment uses generic drivers. If you have custom hardware (like specialized RAID controllers), ensure they are installed in the main OS, as the recovery environment might struggle to detect drives during a repair if proprietary storage drivers are missing.
Label Your Drive: If you manually create partitions using Disk Management, ensure the recovery partition is marked as Hidden and does not have a drive letter assigned. Visible recovery partitions can be accidentally formatted by users or automated cleanup tools.
Troubleshooting
Error: "The operation could not be completed. Access is denied." This almost always means you did not run Command Prompt as Administrator. Close the window and reopen it with admin rights.
Error: "No recovery image found." If /enable fails because no image exists, you may need to extract one. On some systems, the image is stored in C:\Recovery\WindowsRE\Winre.wim. If this file is missing, you may need to use the Dism tool to capture the current OS state into a WIM file and then point reagentc to it. However, for most users, reinstalling Windows updates often restores the default image.
Recovery Partition Not Appearing in Boot Menu: Ensure your BIOS/UEFI settings are set to boot in UEFI Mode, not Legacy/CSM. Modern Windows recovery environments require UEFI. Also, check that the partition is marked as Active in Disk Management (though typically only the System Reserved partition needs to be active; the recovery partition just needs to exist and be referenced by BCD).
Cannot Shrink Volume: If you are trying to free up space for the partition and Windows refuses to shrink C:, there may be unmovable system files (like pagefile.sys or hibernation file). Disable hibernation (powercfg /hibernate off) and temporarily move the pagefile to another drive, then try shrinking again.
Frequently Asked Questions
Can I delete the recovery partition to gain space?
Yes, you can delete it via Disk Management, but you will lose the ability to perform a native Windows Reset or enter the Advanced Startup menu directly from the boot screen. Always create a bootable USB installer before deleting it.
Does this work on Windows 7?
The reagentc tool is available in Windows 8, 10, and 11. Windows 7 uses different tools (like bcdboot and manual partitioning) and does not support the same automatic recovery image configuration.
Will this erase my personal files?
No. Creating or enabling the recovery partition does not format your C: drive or delete user documents. It only modifies system-level structures. However, a "Reset this PC" operation initiated later can choose to remove all files.
Why is my recovery partition only 500MB?
This is standard size. It contains the minimal Windows PE (Preinstallation Environment) needed to repair the OS. It does not contain your personal data or full application installations.
Can I move the recovery partition to another drive?
Not easily. The recovery environment is tightly linked to the boot configuration data (BCD) of the primary drive. Moving it requires complex manual reconfiguration of BCD entries and is not recommended for average users.
What if the 'Restart Now' button is grayed out?
This usually indicates that the recovery environment is disabled or corrupted. Run reagentc /disable followed by reagentc /enable to refresh the configuration. If that fails, you may need to repair the boot sector using sfc /scannow.