大网数据广告活动
启动与系统组件

Troubleshoot Windows Update installation Error 0x800F0831

· 52CE 我爱测

Learn how to resolve Windows Update installation error 0x800F0831 (CBS E STORE CORRUPTION).

Windows Update error 0x800F0831 (CBS_E_STORE_CORRUPTION) indicates that the Windows component store is corrupted. This condition prevents updates from installing correctly. This error typically occurs if a required package is missing from the store or isn't fully applied to the registry.

Use this article to identify the cause of the error and apply the appropriate fix for your environment.

Symptoms

When you try to install any update by using the standalone installer (.msu), or you try to install a Windows update, you receive one of the following error messages:

Some updates were not installed

:::image type="content" source="media/following-updates-were-not-installed.png" alt-text="Screenshot of the installation error message.":::

Updates failed

:::image type="content" source="media/windows-update-failed.png" alt-text="Screenshot of the Windows Update failed error message.":::

Note: The symptoms might vary depending on each case, but the cause of this issue remains the same.

Cause

This error can occur for one of the following reasons:

  • The update was never installed.
  • The update is installed, but some packages aren't applied to the registry.

To locate the installation packages in the system, search for the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages

To investigate the cause further, examine the CBS.log file (C:\windows\logs\CBS). For more information about how to collect the CBS.log file, see Fix Windows Update corruptions and installation failures. Search for output that resembles the following example:

Info CBS Store corruption, manifest missing for package: Package_123_for_KB3192392~31bf3856ad364e35~amd64~~6.3.1.4

Error CBS Failed to resolve package 'Package_123_for_KB3192392~31bf3856ad364e35~amd64~~6.3.1.4' [HRESULT = 0x800f0831 - CBS_E_STORE_CORRUPTION]

Info CBS Mark store corruption flag because of package: Package_123_for_KB3192392~31bf3856ad364e35~amd64~~6.3.1.4. [HRESULT = 0x800f0831 - CBS_E_STORE_CORRUPTION]

Info CBS Failed to resolve package [HRESULT = 0x800f0831 - CBS_E_STORE_CORRUPTION]

Note: For more information about how to collect more update logs by using the TroubleshootingScript (TSS) tool version 2, see Introduction to TroubleShootingScript toolset (TSS).

Resolutions

Important:
Before you troubleshoot this issue, back up the operating system disk. For information about this process for virtual machines (VMs), see About Azure Virtual Machine restore.

The appropriate method to fix this issue depends on the type of computer that's affected:

Resolution for Azure virtual machines: Perform an in-place upgrade

If the affected computer is a VM that's running in Azure, we strongly suggest that you perform an in-place upgrade (IPU) to fix the issue. The in-place upgrade reinstalls the operating system while retaining the VMs current configuration.

For more information, see In-place upgrade for supported VMs running Windows in Azure.

Resolutions for physical computers

For physical computers or non-Azure VMs, follow these steps to obtain a fresh copy of the update, uninstall the update (if it's partially installed), and then reinstall the update.

Step 1: Obtain a fresh copy of the update
  1. To make sure that CBS.log contains the latest data, reproduce the issue by trying to install the affected update or feature.

  2. Review CBS.log to identify the update or feature package by its KB number.

  3. Navigate to Microsoft Update Catalog, and search for the KB number that you identified.

  4. For that KB number, select the package that's appropriate for the operating system version and architecture of the affected computer.

  5. Download the package to a temporary folder ("temp") on drive C of the affected computer.

  6. On the affected computer, open an administrative Command Prompt window, and then run the following commands, in sequence:

    cd \
    cd temp
    expand -F:* <PackageName>.msu C:\temp
    

    [!NOTE]
    In these commands, <PackageName> represents the file name of the package that you downloaded. The name contains operating system, architecture, and KB information (for example, windows10.0-kb4462937-x64_9e250691ae6d00cdf677707e83435a612c3264ea.msu).

  7. Review the expanded contents of the package, and locate the .cab file that matches your operating system version (for example, windows 10.0-KB4462937-x64.cab).

Step 2: Remove the update (if it's necessary)

Follow this step if the update appears to be partly or completely installed on the affected computer.

  1. At the command prompt, run the following command:

    Dism /online /remove-package /packagepath:C:\temp\<CabFileName>.cab
    

    [!NOTE]
    In this command, <CabFileName> represents the name of the .cab file.

  2. If you're prompted to, restart the computer.

Step 3: Install the update
  1. At the command prompt, run the following command:

    Dism /online /add-package /packagepath:C:\temp\<CabFileName>.cab
    
  2. Restart the computer.

  3. Try again to install the update or feature.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- ✅ Supported versions of Windows Server - ✅ Supported versions of Windows Client - ✅ Supported versions of Azure Virtual Machine · Source date 04/22/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。