After upgrading to Windows 11 version 24H2, some users find that the Windows Recovery Environment file WinRE.wim is missing from the system partition. This file is required for advanced recovery tools like Startup Repair, Command Prompt, and Safe Mode. When WinRE.wim is absent, the system cannot boot into the recovery environment when needed.
The cause is a known partition sizing issue during the 24H2 feature update. The installer may not allocate enough space on the Recovery Tools partition to hold the updated WinRE.wim file. This article explains why this happens and provides step-by-step instructions to rebuild WinRE.wim and restore the recovery environment on Windows 11.
Key Takeaways: Rebuilding WinRE.wim After Windows 11 24H2
- Diskpart and reagentc commands: Use these tools to check the recovery partition status and manually assign a drive letter.
- DISM /Add-Image to repopulate WinRE.wim: Extract the recovery image from the Windows installation media and place it on the recovery partition.
- Reagentc /setreimage and /enable: Register the new WinRE.wim location and re-enable the recovery environment.
Why WinRE.wim Goes Missing After the 24H2 Update
The Windows Recovery Environment relies on a file named WinRE.wim stored in the Recovery Tools partition, typically labeled as partition type 27. During the 24H2 feature update, the setup process evaluates the available space on this partition. If the partition is smaller than approximately 550 MB, the installer may skip copying the updated WinRE.wim file to avoid a failed update. This leaves the system without a valid recovery image.
The root cause is the partition layout created by earlier Windows installations or disk management tools. Many systems have a recovery partition as small as 500 MB. The 24H2 WinRE.wim file is larger than previous versions due to added components. When the partition cannot hold the new file, the update process removes the old WinRE.wim and does not replace it. The result is an empty recovery partition and a missing recovery environment.
How to Verify WinRE.wim Is Missing
Open Command Prompt as administrator and run:
reagentc /info
If the output shows Windows RE status: Disabled and the WinRE location line is blank, the recovery image is missing. You can also check the recovery partition directly by running diskpart, selecting the disk and partition, and using the detail partition command to confirm the partition type and size.
Steps to Rebuild WinRE.wim on Windows 11 After 24H2
To restore the recovery environment, you need to create a recovery partition with sufficient space, copy the WinRE.wim file from the Windows installation media, and register it with the system. Follow these steps in order.
Step 1: Prepare the Recovery Partition
- Open Disk Management
Press Windows key + X and select Disk Management. Identify the recovery partition. It is typically a small partition without a drive letter, labeled as type 27 or listed as Recovery Tools. - Shrink the main OS partition
If the recovery partition is too small, you must shrink the C: drive to free up space. Right-click the C: partition and select Shrink Volume. Enter a shrink amount of at least 600 MB. This creates unallocated space. - Delete the old recovery partition
Right-click the existing recovery partition and select Delete Volume. This removes the undersized partition. The unallocated space now includes the freed partition space plus the shrunken space. - Create a new recovery partition
Right-click the unallocated space and select New Simple Volume. Set the size to 650 MB to ensure enough room for future updates. Assign a drive letter temporarily, such as R:. Format the volume as NTFS and label it Recovery.
Step 2: Copy WinRE.wim from Installation Media
- Mount the Windows 11 24H2 ISO
Download the official Windows 11 24H2 ISO file from Microsoft. Double-click the ISO to mount it as a virtual drive. Note the drive letter, for example, D:. - Locate the WinRE.wim file
On the mounted ISO, navigate to D:\sources\. Find the file named install.wim or install.esd. This file contains the full Windows image including the recovery tools. - Extract WinRE.wim using DISM
Open Command Prompt as administrator. Run the following command to list the image index that matches your edition:dism /Get-WimInfo /WimFile:D:\sources\install.wim
Note the index number for Windows 11 Pro or the edition you use. Then extract the recovery image:
dism /Export-Image /SourceImageFile:D:\sources\install.wim /SourceIndex:1 /DestinationImageFile:C:\Recovery\WinRE.wim /Compress:max
Replace SourceIndex:1 with the correct index number. This creates a WinRE.wim file on your C: drive.
- Copy WinRE.wim to the recovery partition
Copy the extracted file to the new recovery partition:copy C:\Recovery\WinRE.wim R:\
Replace R: with the drive letter you assigned to the recovery partition.
Step 3: Register and Enable the Recovery Environment
- Set the recovery image path
In Command Prompt as administrator, run:reagentc /setreimage /path R:\
This registers the location of WinRE.wim.
- Enable Windows RE
Run:reagentc /enable
The system copies WinRE.wim to the correct location and activates the recovery environment.
- Verify the recovery status
Run:reagentc /info
The output should show Windows RE status: Enabled and a valid WinRE location path.
- Remove the temporary drive letter
Open Disk Management, right-click the recovery partition, and select Change Drive Letter and Paths. Remove the assigned drive letter to hide the partition from File Explorer.
Common Issues After Rebuilding WinRE.wim on Windows 11 24H2
“The specified path does not point to a valid Windows RE image” error
This error occurs when the WinRE.wim file is corrupted or not extracted correctly. Re-extract the file using DISM with the correct source index. Verify the file size is over 400 MB. A smaller file indicates a failed extraction.
Recovery partition still too small after shrinking
If the C: drive cannot shrink enough due to unmovable files, use a third-party partition tool like GParted from a bootable USB. Alternatively, disable pagefile and hibernation temporarily to reduce file fragmentation, then shrink again. Re-enable both after the partition is resized.
Windows RE status shows Enabled but the environment does not boot
The boot configuration data may point to a wrong partition. Run bcdedit /enum and look for the recoverysequence entry. If it points to a non-existent partition, run reagentc /disable then reagentc /enable to rebuild the entry.
Comparison of Recovery Partition Sizes Before and After 24H2
| Item | Before 24H2 (500 MB partition) | After 24H2 (650 MB partition) |
|---|---|---|
| WinRE.wim file size | ~380 MB | ~480 MB |
| Partition free space | ~120 MB | ~170 MB |
| Update success rate | High | High |
| Risk of missing WinRE after update | Low | Low |
The 650 MB partition provides enough headroom for the larger WinRE.wim file in 24H2 and future updates. A 500 MB partition is likely to fail during the feature update, causing WinRE.wim to be removed.
You can now rebuild WinRE.wim and restore the Windows Recovery Environment on your Windows 11 system after the 24H2 update. Use the reagentc /info command periodically to verify the recovery status, especially after future feature updates. For proactive protection, resize the recovery partition to 650 MB before attempting the next major update to prevent the problem from recurring.