COMPONENTS hive may be corrupt - Win10 Pro (1909 18363.535) x64

JohM

New member
Joined
Apr 12, 2020
Posts
4
Windows 10 Professional x64 (1909, 18363.535) - Corrupt Components hive error

Windows cannot repair the corrupt Windows\System32\Conf\System\components hive. Manually loading the components file (via Regedit) ends with
Cannot load Windows\System32\Conf\System\components. Error loading hive

DSIM output Dism /Online /Cleanup-Image /RestoreHealth includes:
Error in operation: (null) (CBS HRESULT=0x800703f1) - CCbsConUIHandler::Error
Failed to restore the image health.
Failed while processing command cleanup-image.
DISM Package Manager processed the command line but failed. HRESULT=800703F1

Unfortunately there are no System Restore points, no copies, previous versions, or backups of these system files. Everything was unwittingly cleaned (aka effed off) throughout many and more troubleshooting practises 😒

The Components (48 MB) file from Microsoft OneDrive:
Components

Help certainly appreciated.
 

Attachments

Hi!

Step 1 - Replace Components Hive Manually

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.

  1. Download COMPONENTS.ZIP and save to your 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 we 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


COMPONENTS.zip (11.13MB) - SendSpace.com
 
Thank you softwaremaniac,

It's not only amazing you repaired the file but so promptly during the Easter break! There's a long spiel as to why I've taken over a week to show my appreciation, in short, it's because my computer crashed not long after restoring the COMPONENTS file due to other windows anomalies. Here's what actually happened (according to me):

I replaced COMPONENTS (windows\system32\config) with your working file. Rebooted, could/should have ran DISM and SFC repairs etc. but--to my surprise--all seemed well with Windows updates downloading and initializing.
However, come the required reboot to push the update, Windows updates (including KB4549951) eventually failed to complete. The problem at this point was the attempted rollback of changes to the system, Windows configured the wrong BCD store and configured my data disk as the boot drive. And because my OS drive (with correct BCD) was not configured as my actual boot drive, Windows started throwing errors about corrupt disks and all kinds of nonsense. From this point onwards it was serious downtime as troubleshooting was taking forever because it was impossible to boot just from a simple USB thumbdrive--Windows failed instantly after CMOS POST. So I had to use my SATA to USB3 and extract the two SSD disks from the laptop for further investigation and recovery.

In the end there was nothing wrong with the two SSD disks, I eventually removed the BCD config from the data drive, also configured that drive as a DYNAMIC disk instead, and repaired the BCD on the OS drive.

At the moment it's still a hard road troubleshooting these ole Windows Update errors (decades old problem). Some things attempted include:

Code:
#CMD as Administrator
SFC /scannow
DISM /Online  /Cleanup-Image /AnalyzeComponentStore
DISM /online /Cleanup-Image /StartComponentCleanupI
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth

#Powershell as Administrator
#Uninstall All Built-In Applications
Get-AppxPackage -AllUsers | Remove-AppxPackage

#CMD as Administrator to Reset Windows App Store
wsreset.exe

#Sought Out Problem Packages
DISM /image:c:\ /Get-Packages >> c:\temp\packages.txt

#Removed Problem Packages
DISM /Online /Remove-Package /PackageName:

NET stop bits
NET stop wuauserv
NET stop appidsvc
NET stop cryptsvc

DEL "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"

RMDIR %systemroot%\SoftwareDistribution /S /Q
RMDIR %systemroot%\system32\catroot2 /S /Q

SC sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

SC sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

#Open the Registry Editor
HKEY_LOCAL_MACHINE\COMPONENTS

#Delete them all if you locate any of them.
PendingXmlIdentifier
NextQueueEntryIndex
AdvancedInstallersNeedResolving

CD /d %windir%\system32
#/S switch silently without additional prompts
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll

NETSH winsock reset
NETSH winsock reset proxy

NET start bits
NET start wuauserv
NET start appidsvc
NET start cryptsvc

#Run Windows Update Troubleshooter
msdt.exe -ID WindowsUpdateDiagnostic

I'm sure this could have been done a lot easier and all through PowerShell... some updates have installed and along side other troubleshooting efforts are error codes like:
HEX: 0x8024001E
DEC: 2149842974

The last and most difficult update to install is KB4549951. Any good pointers welcomed, but could a seemingly fine operating system have such a weak and broken foundation?
 
Last edited:
sfc /scannowcleanmgr.exeDISM /Online /Cleanup-image /Scanhealth
%WinDir%\Logs\CBS\CBS.log%WinDir%\Inf\setupapi.dev.log%WinDir%\Logs\DISM\dism.log
OneDrive
CBS.log
OneDrive
dism.log
OneDrive
setupapi.dev.log

Thanks for the assist.
 

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

Back
Top