If you run into errors updating Windows or using recovery tools, it might be because your Windows RE partition is too small. Expanding this partition isn't something Windows does automatically, but with PowerShell and a bit of planning, you can get it done. This guide walks you through every step, from understanding your partitions to safely resizing and updating the RE partition, all using PowerShell.
Why Extend the Windows RE Partition?
The Windows Recovery Environment (RE) partition stores tools for troubleshooting and repairing your system. When it becomes too small, Windows updates can fail, particularly feature updates that need extra space for new recovery files. You might see errors like 0xc1900104 or 0x80070070, or messages about insufficient partition size.
Manufacturers sometimes create tiny RE partitions to save disk space, especially on SSDs. Over time, as Windows grows and adds more recovery features, the original size might not be enough. Extending the RE partition ensures you can use recovery tools and receive updates without annoying interruptions.
Checking Your Existing Partition Layout
Before making changes, you need to know your current disk and partition layout. Open PowerShell as administrator and run:
Get-Partition
Look for the partition with the Type "Recovery" or with no drive letter, usually between your EFI System Partition and the main Windows partition. Note its size and position. Also, check for unallocated space nearby. If you don't see enough free space next to the RE partition, you'll need to shrink another partition first.
Shrinking the Windows Partition to Create Space
If the RE partition is sandwiched between your EFI and Windows partitions, you'll need to free up space by shrinking the main Windows partition. In PowerShell, use:
Resize-Partition -DriveLetter C -Size (NewSizeInBytes)
Replace NewSizeInBytes with the new, smaller size for your system drive (make sure you leave enough space for Windows to function properly). For example, to shrink C: by 1 GB, subtract 1 GB from the current size and use that value. After shrinking, verify that unallocated space now sits next to the RE partition using Get-Partition or Get-Volume.
Deleting and Recreating the Windows RE Partition (If Needed)
Sometimes, the RE partition cannot be extended directly because of its position or because PowerShell's Resize-Partition cmdlet doesn't support it. In such cases, you may need to delete and recreate it. Back up your system before proceeding. First, disable Windows RE:
reagentc /disable
Then, delete the RE partition using PowerShell:
Remove-Partition -DiskNumber X -PartitionNumber Y
Replace X and Y with the correct disk and partition numbers. Next, create a new partition in the unallocated space:
New-Partition -DiskNumber X -Size (SizeInMB*1MB) -Type Recovery
Format it with:
Format-Volume -Partition (Get-Partition -DiskNumber X -Type Recovery) -FileSystem NTFS -NewFileSystemLabel "WINRE"
Assigning the New RE Partition and Restoring Windows RE
Once the new partition is in place, you need to assign it as the Windows Recovery Environment. First, copy the WinRE image back:
robocopy C:\Windows\System32\Recovery X:\Recovery\WindowsRE winre.wim
Replace X: with the temporary drive letter of the new partition (assign it with Set-Partition -PartitionNumber Y -DiskNumber X -NewDriveLetter X if needed). Then, point Windows to this new RE location:
reagentc /setreimage /path X:\Recovery\WindowsRE
Finally, enable RE again:
reagentc /enable
Check that everything is in order with reagentc /info.
Extending an Existing RE Partition Directly
If you're lucky and your RE partition is next to unallocated space, you can try to extend it in place. Find the partition number, then run:
Resize-Partition -DiskNumber X -PartitionNumber Y -Size (NewSizeInBytes)
Make sure the new size includes the current size plus the amount you want to add. For example, to grow a 750MB partition to 1.2GB, set NewSizeInBytes to 1,200,000,000. After resizing, double-check with Get-Partition that the size increased and that the partition type is still Recovery.
Verifying the Result and Dealing with Errors
After all changes, run reagentc /info to check that Windows RE is enabled and points to the new partition. Boot into the recovery environment (Shift + Restart from the Start menu) to confirm it loads. If you see errors, re-check the partition size and location, and make sure the WinRE.wim file was copied correctly.
If Windows updates still fail, ensure your RE partition is at least 750MB (1GB is safer for future updates). Sometimes, Disk Management or third-party tools may be needed for tricky setups, but PowerShell covers most modern UEFI/GPT systems.
Frequently asked questions
Is it safe to extend or recreate the Windows RE partition?
Yes, if you follow the steps carefully and back up your data first. Mistakes can make recovery tools unavailable until fixed, but your main Windows installation is usually not affected.
How big should the Windows RE partition be?
Microsoft recommends at least 750MB, but 1GB is better for future updates. Some OEMs use smaller sizes, which can cause problems.
Do I need a third-party tool to move or resize the RE partition?
Usually no. PowerShell and built-in tools work in most cases. Rarely, if your layout is complex, you might need extra tools for advanced moves.
Can I delete the RE partition if I never use recovery options?
You can, but you lose access to built-in repair and reset tools. It's better to keep it-it's small, and it can save you in emergencies.