Windows Server: How to Repair Component Store Corruption in Windows 8 and Windows Server 2012

Windows Server: How to Repair Component Store Corruption in Windows 8 and Windows Server 2012

Article Summary: This article provides information on repairing component store corruption, which often causes problems with Windows updates, in Windows 8 and Windows Server 2012.

In Windows Server 2008 and 2008 R2, one of the primary tools for troubleshooting issues with Windows updates is the System Update Readiness Tool, also known as CheckSUR, which is available for download from Microsoft. This tool is able to fix a variety of issues relating to updates, and when it encounters issues that it can't fix, the log it generates is often very helpful in directing further troubleshooting.

CheckSUR is not available in Windows Server 2012. Instead, its functionality has been integrated into the Deployment Image Servicing and Management (DISM) utility in the form of several switches, all of which are appended to the dism /online /cleanup-image command:

  • /CheckHealth: This switch merely checks for pre-existing corruption which has already been noted in the registry. Nothing is repaired, and this command should take no time to run.
  • /ScanHealth: This switch checks the component store for corruption. If any is found, it is recorded in the CBS.log file. Nothing is repaired, but the scan may take several minutes to complete. The image below illustrates the output of the dism /online /cleanup-image /scanhealth command after it has completed a scan:
  • /RestoreHealth: Like the /ScanHealth switch, /RestoreHealth checks the component store for corruption and logs it in the CBS.log file if any is found. In addition, this command attempts to repair any corruption found. Since the repair takes time, this command may take upwards of 10 minutes to complete, depending on the degree of corruption it finds.

Not surprisingly, there are PowerShell equivalents for each of these DISM commands:

  • Repair-WindowsImage -Online -CheckHealth
  • Repair-WindowsImage -Online -ScanHealth
  • Repair-WindowsImage -Online -RestoreHealth

If corruption is detected, DISM can download replacements for the corrupt packages from Windows Update or from a mounted Windows Image (WIM) file. Windows Server Update Services (WSUS) cannot be used as a package source, however.

The CBS.log file is located in C:\Windows\Logs\CBS\.

For more information on repairing component store corruption, see Fixing Component Store Corruption in Windows 8 and Windows Server 2012.

Quick Tips content is self-published by the Dell Support Professionals who resolve issues daily. In order to achieve a speedy publication, Quick Tips may represent only partial solutions or work-arounds that are still in development or pending further proof of successfully resolving an issue. As such Quick Tips have not been reviewed, validated or approved by Dell and should be used with appropriate caution. Dell shall not be liable for any loss, including but not limited to loss of data, loss of profit or loss of revenue, which customers may incur by following any procedure or advice set out in the Quick Tips.

Article ID: SLN283493

Last Date Modified: 01/07/2019 04:34 AM

Rate this article

Easy to understand
Was this article helpful?
Yes No
Send us feedback
Comments cannot contain these special characters: <>()\
Sorry, our feedback system is currently down. Please try again later.

Thank you for your feedback.