Seems Component hive is corrupt

Sonics2040

Member
Joined
Dec 22, 2022
Posts
11
Thank you in advance for your assistance. I have been trying to figure this out and came across this site while searching for solutions.

Been unable to install windows updates since November. Server 2019. Did the following troubleshooting.

Ran dism /online /cleanup-image /restorehealth
Error 1000: The configuration registry database is corrupt

Ran sfc \scannow
Received: Windows Resource Protection could not perform the requested operations

Chkdsk comes up clean

Reviewed CBS.log and saw errors referencing the component store. Led me to conclude that is was corrupt.

Tried loading the COMPONENTS hive manually to the registry and receive Error while loading hive
 
Is this something that is not fixable, or do I need to provide more information? Appreciate any help or advise to try to resolve. Thanks
 
Hi and welcome to Sysnative,

Download
61f7aba7309a1-ComponentsScanner_Icon.png
ComponentsScanner and save it to your desktop.
  • Right-click ComponentsScanner.exe and select "Run as administrator", click Yes on the UAC (User Account Control) prompt which appears.
  • Follow the on-screen instructions.
  • When the following message appears: "ComponentsScanner has detected the following issues that it is able to repair automatically."
  • Press Y to perform the repair.

    62446b15462b1-ComponentsScanner-ERROR_BADDB.png

  • Once complete, a report will be saved to your desktop called ComponentsScanner.txt.
  • Post the logfile ComponentsScanner.txt as attachment into your next reply.
 
Hi,

Please reboot the server and run the System File Checker.
Code:
SFC /Scannow
If it fails attach a new copy of the CBS Log(s).
 
Rebooted server and ran SFC /Scannow.

Get the following message.

There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.

I did reboot again and got the same message. Thanks
 

Attachments

Hi,

Could you please post a new copy of the COMPONENTS hive and a copy of the CBS hive.

Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.


Export CBS (Component Based Servicing) hive
  • Click on the Start button and type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).

    622dbef75cd3a-Export-CBS-hive.png

  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send > Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.


If the file %windir%\winsxs\pending.xml exist, zip this file and attach it as well to your next post.
 
Hi,

Happy New Year to you too! Please post the Component Based Servcing export as HIVE file, not as *.REG.
 
Hi,

Step 1. Download
56f31e53c97da-SFCFix.PNG
SFCFix and save it to your desktop.
Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Reboot the server and try to run the System File Checker. If it fails attach a new copy of the CBS log.
Code:
SFC /Scannow
 

Attachments

Rich (BB code):
2023-01-04 08:14:58, Info                  CBS    Failed to get Transaction State for package: Microsoft-Windows-NetFx4-OC-Package~31bf3856ad364e35~amd64~~10.0.17763.1, update: NetFx4 [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
2023-01-04 08:14:58, Error                 CBS    Failed to get store state [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]

Could you please post a complete copy of the CBS folder with the older logs, as well as the logs of the .NET Framework Repair tool.

  • Open Windows Explorer and browse to the C:\Windows\Logs folder.
  • Right-click on the CBS folder and choose Send to > Compressed (zipped) folder.
  • Now the message will appear, "Windows cannot create the Compressed (zipped) Folder here. Do you want it to be placed on the desktop instead?"
  • Click on the Yes button here.
618e949e09fef-CBS-Folder.png

  • Attach the file CBS.zip to your next reply.


Download the
60fe7f9d70500-NetFxRepairTool_107-1.png
Microsoft .NET Framework Repair tool and save it to your Desktop.
  • Right-click on NetFxRepairTool.exe and select Run as Administrator.
  • Agree with the license terms "I have read and accept the license terms" and click Next.
  • After checking, the tool will indicate which problems need to be fixed.
  • Click on Next to continue, when this process is finished click Next.
  • The tool will now collect the log files... > when completed the following file is created: FixDotNet****.cab.
  • Click on Finish to close the tool.
  • Right-click on the file FixDotNet****.cab and choose Send to > Compressed (zipped) folder.
  • Attach the ZIP file in your next reply.
 
Could you please attempt to upate again with Process Monitor running, afterwards attach a new copy of the CBS log(s) as well..

Step#1 - Capture Process Monitor Trace
1. Download and run Process Monitor. Leave this running while you perform the next steps.
2. Try updating the system just like you have in the past.
3. Stop Process Monitor as soon as it fails. You can simply do this by clicking the square (CTRL +E) on the toolbar as shown below.



4. Select the File menu...Save... and save the file to your desktop. This is likely the default location. The name (unless changed) will be LogFile.PML. This is fine.
5. Zip up the LogFile.PML and upload it to WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free and provide the link.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top