Fix Error 0x80070643 in Windows 11: Step-by-Step Guide
In this article
Error 0x80070643 in Windows 11 usually appears during Windows Update, often when installing the KB5034441 security update. It means the update failed to install because the Windows Recovery Environment (WinRE) partition is too small. The fix is to shrink the main OS partition and expand the WinRE partition, or use a Microsoft-provided recovery script. Below are the exact steps to resolve it.
What You'll Need
- A Windows 11 PC with administrative privileges.
- At least 800 MB of free space on your C: drive (the script will free it automatically).
- An internet connection to download the recovery script if needed.
- Optional: a USB drive with Windows 11 installation media, in case you need to repair the recovery environment manually.
Step-by-Step
- Run Windows Update again. Sometimes the error is transient. Go to Settings > Windows Update and click Check for updates. If it still fails, proceed.
- Open Command Prompt as Administrator. Click the Start button, type
cmd, right-click Command Prompt, and select Run as administrator. Click Yes when prompted. - Check the WinRE status. In the Command Prompt, type
reagentc /infoand press Enter. Look for the Windows RE status line. If it says Enabled, continue. If it says Disabled, skip to Step 7. - Disable WinRE. Type
reagentc /disableand press Enter. This temporarily turns off the recovery environment. - Shrink the OS partition. Type
diskpartand press Enter. Then typelist diskto see your disks. Identify the disk with your Windows installation (usually Disk 0). Typeselect disk 0(replace 0 with your disk number). Then typelist partitionto see partitions. Find the partition that is your C: drive (usually Partition 1 or 2, with a size in GB). Typeselect partition 1(replace 1 with your C: partition number). Then typeshrink desired=800 minimum=800and press Enter. This frees up 800 MB of space. - Expand the WinRE partition. Type
list partitionagain to see the updated list. Find the WinRE partition (usually labeled as Recovery or System Reserved). Typeselect partition 2(replace 2 with the WinRE partition number). Then typeextendand press Enter. This grows the WinRE partition to use the freed space. - Exit diskpart. Type
exitand press Enter. - Re-enable WinRE. Type
reagentc /enableand press Enter. - Verify WinRE is enabled. Type
reagentc /infoand press Enter. The status should say Enabled. - Close Command Prompt. Type
exitand press Enter. - Run Windows Update again. Go back to Settings > Windows Update and click Check for updates. The update should now install successfully.
Common Mistakes
- Selecting the wrong disk or partition. Double-check the disk and partition numbers before running shrink or extend. If you shrink the wrong partition, you could lose data.
- Not disabling WinRE first. If you try to shrink the C: drive while WinRE is enabled, you may get an error because the recovery partition is locked.
- Using the wrong diskpart syntax. Ensure you use
shrink desired=800 minimum=800exactly. If you omit the minimum, diskpart may shrink by the maximum possible, which could be too much. - Forgetting to re-enable WinRE. If you leave it disabled, your system will not have a recovery environment, which is important for troubleshooting.
Tips
- Back up your data before making partition changes. Although diskpart is generally safe, any partition operation carries a small risk. Use File History or a full system image backup.
- Use the Microsoft-provided script. If you are uncomfortable with diskpart, Microsoft has published a recovery script that automates these steps. Search for "KB5028997" on the Microsoft support site to find the script and instructions.
- Check for other pending updates. Sometimes the error appears because other updates are stuck. Restart your PC and try again.
- If you have a custom partition layout, the WinRE partition might be in a different location. Use
reagentc /infoto see the exact path, and adjust the diskpart steps accordingly.
Troubleshooting
If the steps above do not work, try these in order:
- Run the Windows Update troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and click Run next to Windows Update. Follow the prompts.
- Reset Windows Update components. Open Command Prompt as administrator and run the following commands one by one, pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserverren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.oldnet start wuauservnet start cryptSvcnet start bitsnet start msiserver
Then restart your PC and try updating again. - Repair the WinRE partition manually. If the partition is corrupted, you may need to rebuild it. This requires a Windows 11 installation USB. Boot from the USB, select Repair your computer, then Troubleshoot > Advanced options > Command Prompt. From there, you can use diskpart to delete and recreate the WinRE partition, but this is advanced and may require a licensed technician.
- Install the update manually. Download the standalone update package from the Microsoft Update Catalog. Search for the KB number (e.g., KB5034441), download the .msu file, and double-click to install it. If it fails, the partition issue is still the cause.
- If all else fails, consider a system restore to a point before the update, or use the Reset this PC feature (Settings > System > Recovery) to reinstall Windows while keeping your files. This will likely resolve the partition issue, but it is a last resort.
Frequently Asked Questions
What causes error 0x80070643?
It is most commonly caused by insufficient space on the Windows Recovery Environment (WinRE) partition. The KB5034441 security update requires about 800 MB of free space on that partition, which is often too small by default.
Will I lose my files if I shrink the C: drive?
No, shrinking the C: drive using diskpart only frees up unused space. It does not delete any files. However, it is always wise to back up before making partition changes.
Can I skip the WinRE partition and just disable WinRE permanently?
Technically yes, but it is not recommended. WinRE is essential for troubleshooting startup problems, and disabling it removes your recovery options. The update will likely fail again if WinRE is disabled, so it is better to fix the partition.
Is this error specific to Windows 11?
No, error 0x80070643 can occur on Windows 10 as well, especially with the same security update. The fix is identical.
How long does the diskpart process take?
It usually takes less than a minute. The shrink and extend commands are quick, but the entire process including reboots may take 10–15 minutes.
What if I don't have a recovery partition?
If reagentc /info shows WinRE as Disabled and there is no recovery partition, you may need to create one. This is more complex and may require a Windows installation USB. In that case, it is safer to use the Microsoft recovery script or contact support.