Where is the WinRE.wim Stored in Windows 7?
In this article
The WinRE.wim file in Windows 7 is typically stored in a hidden system folder located at C:\Recovery\WindowsRE, though it may also reside on a dedicated, hidden recovery partition that does not have a drive letter assigned to it. This file is the Windows Recovery Environment image, a lightweight version of the operating system used to boot the computer into a repair mode when the primary OS fails to start.
Because the recovery environment is critical for system stability and repair, Microsoft hides the folder and the file by default to prevent accidental deletion or modification. Accessing it requires administrative privileges and the modification of folder view settings. Depending on how the PC manufacturer configured the drive during the factory install, the file might be on the C: drive (the primary system partition) or on a separate OEM recovery partition designed to hold factory reset images and the WinRE boot image.
What You'll Need
- A computer running Windows 7.
- An account with Administrator privileges.
- Basic familiarity with the Command Prompt (CMD).
- Knowledge of how to change folder view options in Windows Explorer.
Step-by-Step
Since the WinRE.wim file is protected by system-level attributes, you cannot simply browse to it. Use the following methods to locate and verify its position. Note that menu labels and folder paths may vary slightly depending on your specific version of Windows 7 or the software installed by your hardware manufacturer.
Method 1: Using the Command Line (Fastest)
- Click the Start button and type
cmdinto the search box. - Right-click on
cmd.exein the search results and select Run as administrator. This is mandatory; without elevation, the system will deny access to the recovery directory. - In the command prompt window, type the following command and press Enter:
reagentc /info - Look at the output under the Windows RE status and Windows RE location sections.
- If the status is Enabled, the location path will be displayed. It will typically show a harddisk and partition number (e.g.,
harddisk0\partition4). - If the location points to a partition that is not C:, the WinRE.wim file is stored on a hidden recovery partition. If it points to the C: drive, it is located in the
C:\Recovery\WindowsREfolder.
Method 2: Using Windows Explorer (Visual)
- Open Windows Explorer by clicking the folder icon on your taskbar or pressing
Windows Key + E. - Click on the Organize menu in the top-left corner and select Folder and search options.
- In the window that opens, click the View tab.
- Under the Advanced settings list, scroll down to find Hide protected operating system files (Recommended). Uncheck this box.
- A warning will appear telling you that this will make operating system files on all drives visible. Click Yes to confirm.
- While still in the View tab, ensure that Show hidden files, folders, and drives is selected.
- Click OK to apply the changes.
- Navigate to
C:\Recovery. You should now see a folder namedWindowsRE. - Open the
WindowsREfolder to find theWinRE.wimfile.
Method 3: Assigning a Letter to a Hidden Partition
If Method 1 revealed that the file is on a separate partition (like Partition 4), you will not see it in Explorer because that partition has no drive letter. To see the file, you must assign one.
- Right-click Computer on your desktop or in the Start menu and select Manage.
- In the left-hand pane, click on Disk Management.
- Locate the small partition (usually a few hundred MBs to a few GBs) that is labeled as Recovery or is unnamed and healthy.
- Right-click that partition and select Change Drive Letter and Paths....
- Click Add, choose an available drive letter (e.g., R:), and click OK.
- Now, open Windows Explorer and navigate to the new drive letter (R:). You will find the
WinRE.wimfile within the recovery folder on that drive.
Common Mistakes
One of the most frequent errors is attempting to access the C:\Recovery folder without first disabling the Hide protected operating system files setting. Many users confuse "Hidden Files" with "Protected Operating System Files." Checking the box for hidden files is not enough; the protected files toggle is a separate, deeper security layer that must be disabled to see the WinRE directory.
Another common mistake is running the Command Prompt as a standard user. If you run reagentc /info without administrative rights, the system will return an error stating that the operation failed or access was denied. Always ensure the window title says Administrator: Command Prompt.
Users also often mistake the boot.smi or other boot configuration files for the recovery image. The WinRE.wim is a large image file (usually several hundred megabytes), whereas boot configuration files are very small. If you see a file that is only a few kilobytes in size, it is not the WinRE image.
Tips
If you intend to modify the WinRE.wim file (for example, to add drivers for a RAID controller or a specific network card), never edit the file directly in its system folder. Copy the WinRE.wim to a separate folder on your desktop or a USB drive first. Use a tool like DISM (Deployment Image Servicing and Management) to mount the image, make your changes, and then commit them before copying the file back to the recovery location.
To keep your system secure, always remember to re-enable the Hide protected operating system files setting once you have finished your task. Leaving these files visible increases the risk of accidentally deleting a critical system component during a routine cleanup of your hard drive.
If you find that your WinRE is disabled (as shown by the reagentc /info command), you can attempt to enable it by typing reagentc /enable. This tells Windows to look for the .wim file in the default locations and link it to the boot configuration data (BCD).
Troubleshooting
If you follow the steps but cannot find the WinRE.wim file, check the following possibilities:
The file is missing: Some custom Windows 7 installations or "lite" versions of the OS have the recovery environment removed to save disk space. If reagentc /info reports that the status is Disabled and the location is empty, the file may have been deleted. In this case, you will need to extract a fresh WinRE.wim from a Windows 7 installation DVD or ISO file located in the sources folder (inside install.wim).
Access Denied errors: Even with the "Hide protected files" setting off, you may receive an "Access Denied" message when trying to enter the WindowsRE folder. This happens because the folder permissions are set to SYSTEM and TrustedInstaller. To bypass this, you must right-click the folder, go to Properties > Security > Advanced, and change the Owner of the folder to your current Administrator account.
Disk Management does not show the partition: If you suspect a recovery partition exists but it is not showing in Disk Management, it may be a dynamic disk or a GPT partition on an older MBR-based system. Ensure your disk drivers are up to date, or boot from a third-party partition manager to see if the space is being occupied by a hidden OEM recovery area.
Frequently Asked Questions
What is the purpose of the WinRE.wim file?
It contains the bootable image for the Windows Recovery Environment. When your computer fails to boot normally, this image is loaded into RAM to provide tools like Startup Repair, System Restore, and the Command Prompt for offline system fixes.
Can I delete the WinRE.wim file to save space?
You can, but it is not recommended. Deleting this file removes your ability to use built-in Windows recovery tools. If you do this, you must have a bootable Windows 7 repair disc or USB drive available to fix your system if it ever crashes.
Why is the file hidden by default?
Microsoft hides it to prevent users from accidentally moving, renaming, or deleting it. Since the bootloader relies on a specific path to find this image, any change to the file's location or name will break the recovery boot process.
How do I know if my WinRE is working?
The most reliable way is to run reagentc /info in an elevated command prompt. If it says Enabled, the system recognizes the image and can boot into it. You can also test it by booting into the Advanced Boot Options menu and selecting Repair Your Computer.
Is WinRE.wim the same as a system image backup?
No. A system image is a full backup of your entire hard drive (files, apps, and OS). The WinRE.wim is just a small, specialized toolkit used to repair the OS or restore a previously created system image.