Error 0x800f0831 usually means the Windows component store is corrupted, or a required package manifest from a previous update is missing. That prevents the cumulative update from installing.
Try these fixes in order:
- Open Command Prompt as administrator and run:
DISM /ONLINE /CLEANUP-IMAGE /SCANHEALTH
DISM /ONLINE /CLEANUP-IMAGE /CHECKHEALTH
DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH
Sfc /Scannow
- Restart the PC and try Windows Update again.
- If the update still fails, check
C:\Windows\Logs\CBS\CBS.logfor the missing package or KB number. This error commonly occurs when the update being installed requires the manifest of a previous update package. - Download a fresh copy of the affected update from Microsoft Update Catalog. Search by the missing package ID or KB number, download the package that matches Windows 10 64-bit, and install it manually.
- If the package appears partially installed, use an elevated Command Prompt to extract the
.msu, then remove and reinstall the matching.cabpackage:
cd \
cd temp
expand -F:* <PackageName>.msu C:\temp
Dism /online /remove-package /packagepath:C:\temp\<CabFileName>.cab
Dism /online /add-package /packagepath:C:\temp\<CabFileName>.cab
Then restart and try the update again.
Important: removing and reinstalling packages can affect system servicing. Back up the operating system disk first.
If the device is an Azure VM, the recommended fix is an in-place upgrade. For physical PCs and non-Azure VMs, the documented path is to remove and reinstall the affected update.
A faulty driver can also block updates in some cases. If a specific driver update is failing and the hardware is otherwise working, hiding that driver update can help, but 0x800f0831 itself is documented as a component store/package corruption issue.
References: