[SOLVED] COMPONENTS hive - ERROR_BADDB - fixable?

steveskr

New member
Joined
Mar 1, 2020
Posts
2
Hello, I recently had a spate of hardware issues in my PC that resulted in several unexpected losses of power (my motherboard and/or ram were the culprit -- I replaced both). Unfortunately I can no longer run Windows Update, DISM, or SFC (even in safe mode), and a repair install of Windows is giving me an error as well.

SFC /scannow errors with: Windows Resource Protection could not perform the requested operation

DISM /online /cleanup-image /scanhealth results in:

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 10.0.18363.657

[== 5.0% ]
Error: 1009

The configuration registry database is corrupt.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

SFCFix (run as administrator) spits out the following log:

SFCFix version 3.0.2.1 by niemiro.
Start time: 2020-03-01 13:51:54.432
Microsoft Windows 10 Build 18363 - amd64
Not using a script file.

AutoAnalysis::
WARNING: Failed to check store directories with return code 1 and error code ERROR_FILE_NOT_FOUND. COMPONENTS hive may be corrupt.
WARNING: Components hive failed load test and may be corrupt.
WARNING: Components hive failed final reload test with error code ERROR_BADDB and may be corrupt.

SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.

Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2020-03-01 13:55:54.632

According to my CBS.LOG file:

2020-03-01 13:26:54, Info CBS Summary:
2020-03-01 13:26:54, Info CBS Operation: Detect only
2020-03-01 13:26:54, Info CBS Operation result: 0x800703f1
2020-03-01 13:26:54, Info CBS Last Successful Step: CBS store detection completes.
2020-03-01 13:26:54, Info CBS Total Detected Corruption: 0
2020-03-01 13:26:54, Info CBS CBS Manifest Corruption: 0
2020-03-01 13:26:54, Info CBS CBS Metadata Corruption: 0
2020-03-01 13:26:54, Info CBS CSI Manifest Corruption: 0
2020-03-01 13:26:54, Info CBS CSI Metadata Corruption: 0
2020-03-01 13:26:54, Info CBS CSI Payload Corruption: 0
2020-03-01 13:26:54, Info CBS Total Repaired Corruption: 0
2020-03-01 13:26:54, Info CBS CBS Manifest Repaired: 0
2020-03-01 13:26:54, Info CBS CSI Manifest Repaired: 0
2020-03-01 13:26:54, Info CBS CSI Payload Repaired: 0
2020-03-01 13:26:54, Info CBS CSI Store Metadata refreshed: False
2020-03-01 13:26:54, Info CBS
2020-03-01 13:26:54, Info CBS Total Operation Time: 2 seconds.
2020-03-01 13:26:54, Info CBS Ensure CBS corruption flag is clear
2020-03-01 13:26:54, Info CBS Ensure WCP corruption flag is clear
2020-03-01 13:26:54, Info CBS All CSI corruption was fixed, ensure CorruptionDetectedDuringAcr is clear
2020-03-01 13:26:54, Info CBS Failed to load the COMPONENTS hive from 'C:\WINDOWS\System32\config\COMPONENTS' into registry key 'HKLM\COMPONENTS'. [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Failed to load component store [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Failed to get CSI store. [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Failed to get CSI store. [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Failed to open COMPONENTS key path: COMPONENTS [HRESULT = 0x80070057 - E_INVALIDARG]
2020-03-01 13:26:54, Info CBS Failed to get COMPONENTS registry key. [HRESULT = 0x80070057 - E_INVALIDARG]
2020-03-01 13:26:54, Info CBS Failed to open COMPONENTS hive to reset corruption flag. [HRESULT = 0x80070057 - E_INVALIDARG]
2020-03-01 13:26:54, Info CBS CheckSur: hrStatus: 0x800703f1 [ERROR_BADDB], download Result: 0x0 [S_OK]
2020-03-01 13:26:54, Info CBS Count of times corruption detected: 0
2020-03-01 13:26:54, Info CBS Seconds between initial corruption detections: -1
2020-03-01 13:26:54, Info CBS Seconds between corruption and repair: -1
2020-03-01 13:26:54, Info CBS Failed to run Detect and repair. [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Reboot mark cleared
2020-03-01 13:26:54, Info CBS Winlogon: Simplifying Winlogon CreateSession notifications
2020-03-01 13:26:54, Info CBS Winlogon: Deregistering for CreateSession notifications
2020-03-01 13:26:54, Info CBS Exec: Processing complete, session(Corruption Detecting): 30797840_533716103 [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Error CBS Session: 30797840_533716103 failed to perform store corruption detect and repair operation. [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Session: 30797840_533716103 finalized. Reboot required: no [HRESULT = 0x800703f1 - ERROR_BADDB]
2020-03-01 13:26:54, Info CBS Failed to FinalizeEx using worker session [HRESULT = 0x800703f1]

I would *love* to fix this vs having to clean install Windows.. Any advice?

I've attached my cbs folder. My components hive file can be found at: components.rar
 

Attachments

Last edited:
Hi Welcome to Sysnative,

Replace Components Hive Manually

!!! WARNING !!! The following fix is only relevant for this system and no other, applying this fix on another computer will not work and most likely will cause problems...
  1. Download COMPONENTS2.ZIP and save it to the Desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now you have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config
 

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

Back
Top