Do not try to shrink the 20 GB partition in place: DiskPart cannot shrink recovery or OEM partitions, so first identify whether Windows RE uses it and, only if you accept losing the manufacturer’s on-disk factory image, replace it with an approximately 1 GB WinRE partition.^1^
1. Identify what Windows is using
Open Terminal (Admin) or Command Prompt (Admin) and run:
reagentc /info
diskpart
list disk
select disk 0
list partition
exit
reagentc /info reports the partition containing the active Windows Recovery Environment (WinRE). For example, a path ending in harddisk0\partition4 means Disk 0, Partition 4.^2^
From the screenshot, the probable layout is:
- EFI System partition — 100 MB
- Windows C: — 206.82 GB
- Data D: — 250 GB
- Recovery — 20 GB
However, verify the numbers from list partition; selecting the wrong partition could make Windows unbootable or destroy data.
A 20 GB partition on a factory-installed computer can hold the manufacturer's full recovery image, drivers, and bundled software—not merely WinRE. Similar factory partitions can be 20–50 GB.^3^
If retaining factory recovery capability matters, first check the laptop manufacturer's recovery-media instructions. Also create Windows recovery media:
- Connect an empty USB drive. Its contents will be erased.
- Search Start for Recovery Drive, or run
recoverydrive.exe.
- Select Back up system files to the recovery drive.
- Select the USB drive and choose Create.
Microsoft states that this media can contain Windows files, installed updates, and manufacturer customizations. It does not back up personal files, so back those up separately.^4^
3. Conditional replacement procedure
Proceed only if:
-
reagentc /info identifies the 20 GB partition as the WinRE location;
- recovery media and personal backups have been created;
- you accept that deleting it may permanently remove the manufacturer's on-disk factory restore image.
Microsoft’s recommended GPT WinRE size is the WinRE image plus customizations plus 250 MB free space. For custom layouts, Microsoft recommends at least 990 MB, with at least 250 MB free; therefore, use 1024 MB rather than 500 MB.^5^
Because D: sits between C: and Recovery in the screenshot, reclaimed space can be added directly to D:, not C:. On a basic disk, extension space must immediately follow the selected volume.^6^
Run the following individually, replacing partition numbers with those verified above:
reagentc /disable
diskpart
select disk 0
list partition
select partition 4
delete partition override
select volume D
extend size=19456
create partition primary size=1024 id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes=0x8000000000000001
format quick fs=ntfs label="Windows RE tools"
exit
reagentc /enable
reagentc /info
Here, 19456 MB reallocates approximately 19 GB to D: and leaves 1024 MB for the new recovery partition. The override operation permanently deletes the selected protected partition.^7^
Microsoft documents the same disable/delete/recreate/enable sequence, including the GPT recovery type ID and attributes.^8^
Afterward, reagentc /info should show:
- Windows RE status: Enabled
- A location on the newly created recovery partition
Then test Settings → System → Recovery → Advanced startup → Restart now.
If reagentc /enable fails, stop rather than deleting or modifying other partitions. The missing detail would be whether the standard winre.wim remains available and whether the 20 GB partition contained a manufacturer-specific recovery arrangement; use the laptop manufacturer’s recovery process or restore from the recovery USB.
References
- shrink
- REAgentC command-line options
- Is Windows Recovery Partition suppose to take 50GB? - Microsoft Q&A
- Recovery Drive | Microsoft Support
- UEFI/GPT-based hard drive partitions
- extend
- delete partition
- KB5028997: Instructions to manually resize your partition to install the WinRE update | Microsoft Support