PowerShell script to fix WinRE/Recovery partition issues - KB5034441, KB5028997, CVE-2024-20666 Windows Update failures
-
Updated
Nov 28, 2025 - PowerShell
PowerShell script to fix WinRE/Recovery partition issues - KB5034441, KB5028997, CVE-2024-20666 Windows Update failures
Windows: merge an empty secondary partition into C: on a GPT disk while preserving WinRE - built-in tools only
Repair, rebuild, and maintain the Windows Recovery Environment (WinRE) on Windows 10 and 11. Fixes "Windows could not find the recovery environment," "The Windows RE image was not found," and KB5034441 recovery-partition-too-small errors. Idempotent, safe to re-run, works on one machine or a managed fleet.
To associate your repository with the reagentc topic, visit your repo's landing page and select "manage topics."