Windows Update Stuck Or Failing? Fix - 0x800f0831
Your Windows Update downloads correctly but fails and rolls back with error 0x800f0831 every time you try to install it. This usually happens because a previous update left behind a corrupted or missing component, preventing the current one from applying correctly.
Why this happens
The error 0x800f0831 indicates a missing manifest or a corrupted update package from a prior installation attempt. You need to repair these components or bypass the automatic updater to get back to a clean state.
What you'll need
You will need administrator access to your PC to run system commands and perform manual installations from the Microsoft Update Catalog.
Steps
-
01Navigate to the Windows Update troubleshooter. In Windows 11, go to Settings/System/Troubleshoot/Other troubleshooters/Windows Update and click Run; in Windows 10, go to Settings/Update and Security/Troubleshoot/Additional troubleshooters/Windows Update and click Run.
-
02Restart your computer after the troubleshooter finishes and check if the update completes successfully.
-
03If the error persists, press the Windows key, type CMD, right-click Command Prompt, select Run as administrator, and click Yes.
-
04Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. Let this process run to completion even if it appears to stall; it may take up to 10 minutes. -
05Once DISM finishes, type
sfc /scannowand press Enter to repair corrupted system files, then restart your PC. -
06If you are still stuck, note the KB number of the failed update from your Update History, go to catalog.update.microsoft.com in your browser, and search for that specific KB number.
-
07Download the version matching your Windows edition and architecture, run the downloaded file to install it manually, and restart your computer one final time.
Still not working?
If the update still rolls back, it is likely that the specific update package is incompatible with your current build or a deeper system component is severely damaged. Provide the specific KB number that is failing in the comments so we can check if there is a known conflict or a specific prerequisite update you are missing.
Frequently asked questions
Will these steps delete my personal files?
No, these commands only repair system files and update components. Your personal documents and installed apps remain untouched.
Why does the DISM command seem frozen?
DISM often stays at the same percentage for several minutes while it downloads and verifies files from Microsoft servers. Do not close the window until it explicitly says the operation completed successfully.
Do I need to do all three steps?
Most users resolve the error after the second step (DISM and SFC). Only proceed to the manual installation if the automated repair commands fail to fix the issue.
Subscribe for fast, no-fluff fixes and best settings guides
For the games, phones, and apps you actually use - every common error, crash, and "how do I…" answered in under three minutes.