0x800F0831
Microsoft Windows Update
Severity: ModerateWhat Does This Error Mean?
Windows Update error 0x800F0831 is a CBS (Component Based Servicing) transaction error. It means Windows Update failed to commit a transaction when installing an update. This typically happens due to corrupted system files, missing update prerequisites, or a conflict in the Windows component store.
Affected Models
- Windows 10
- Windows 11
Common Causes
- The Windows component store (WinSxS) has corrupted entries that the update depends on
- A previous Windows Update was not fully installed, leaving the system in an incomplete state
- Required update prerequisites are missing from the system
- Windows system files are corrupted, causing the CBS transaction to fail
- The SoftwareDistribution cache contains invalid or mismatched update files
How to Fix It
-
Run DISM to repair the Windows component store. Open Command Prompt as Administrator and type: DISM /Online /Cleanup-Image /RestoreHealth — wait for it to complete. This downloads and replaces corrupted component store files.
0x800F0831 is almost always a component store problem. DISM is specifically designed to fix this and is the first tool to try.
-
After DISM finishes, run System File Checker. In the same Command Prompt (Administrator), type: sfc /scannow — let it complete, then restart your PC.
Run SFC after DISM, not before. DISM repairs the reference files that SFC uses. Running SFC first may not fully repair the system if DISM's work is needed first.
-
Clear the Windows Update cache. Open Command Prompt as Administrator and run: 'net stop wuauserv', then delete the contents of C:\Windows\SoftwareDistribution\Download, then run: 'net start wuauserv'. Try Windows Update again.
Incomplete or mismatched downloaded update files can cause CBS transaction failures. Clearing the cache forces a clean re-download of the update.
-
Install any missing prerequisite updates manually. Visit the Microsoft Update Catalog at catalog.update.microsoft.com and search for the specific update that is failing. Download and install any prerequisite updates listed.
Some updates require an earlier update to be installed first. If that earlier update was skipped or failed, subsequent updates will fail with a CBS error.
-
Perform a Windows repair install using the Media Creation Tool. Download the Windows Media Creation Tool from microsoft.com. Run it and select 'Upgrade this PC now.' Choose to keep your files and apps. This reinstalls Windows while preserving everything.
A repair install is the most thorough fix for persistent CBS errors. It replaces all Windows system files without touching your personal data or installed programs.
When to Call a Professional
If DISM and SFC both fail to repair the system, contact Microsoft Support at support.microsoft.com. In some cases, a repair install (also called an in-place upgrade) of Windows is needed — it reinstalls Windows over itself without deleting your files or programs. Microsoft's Media Creation Tool can help with this process.
Frequently Asked Questions
What is Component Based Servicing (CBS)?
CBS (Component Based Servicing) is the Windows system that manages installing, updating, and removing Windows components. Every Windows Update goes through CBS. CBS uses a transaction system — it stages all changes, then 'commits' them once everything checks out. If anything is wrong during the commit step, the entire update rolls back and you get an error like 0x800F0831.
Will a repair install delete my files?
No. A Windows repair install (in-place upgrade) keeps your personal files, installed programs, and settings. It only replaces Windows system files. However, as a precaution, always back up important files before any major Windows operation. The repair install process itself will clearly show you what will and will not be kept before you confirm.
How do I check which specific update is failing?
Go to Settings > Windows Update > View Update History. Failed updates are shown with a red X and their error code. Note the update's KB number (like KB1234567). You can search for that KB number on the Microsoft Update Catalog (catalog.update.microsoft.com) to download it manually or find prerequisite updates.