[SOLVED] Server 2012 R2 VM Corrupted COMPONENTS hive

SIS

New member
Joined
Oct 30, 2018
Posts
3
Can't update or add roles. This is the primary DC in a single DC environment. Repair is desired over rebuild (I don't get paid overtime to rebuild a DC on the weekend)
Server is a VM in a critical role with storage issues, so I don't want to run CHKDSK /r and deal with changing the provision to thick.

SCF /scannow produces:
Code:
Windows Resource Protection could not perform the requested operation.

SCFfix.exe yields:
Code:
Error: 1009
The configuration registry database is corrupt.

CHKDSK finds errors in COMPONENTS header
Trying to install new roles, etc errors saying COMPONENTS is corrupt

CBS folder, dsim.log and COMPONENTS file attached: Dropbox - cbs.zip
 
Hello and welcome!

Your COMPONENTS hive was indeed corrupt. I've managed to fix it enough for us to replace it and see whether there is hope for this to be repaired or not.

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




Step#2 - DISM /RestoreHealth Scan
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. Right-click on the Start button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter
    Dism /Online /Cleanup-Image /RestoreHealth
  3. Once it finishes, copy and paste the following into the command-prompt window and press Enter. If prompted to overwrite the existing file go ahead.
    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  4. Once this has completed please go to your Desktop and you will find CBS.txt => Please zip/upload to this thread.
    Please Note:: if the file is too big (over 7MB) to upload to your next post, please upload via a service such as Dropbox or One Drive or SendSpace and just provide the link.
 
  • Thanks
Reactions: SIS
Replaced COMPONENTS and ran dism
Was able to download and install 2 updates, and install a new feature through server manager
Dropbox - cbs11_2.zip
That has dump of cbs.txt from before and after

Seems resolved, but I thought I'd reply with logs in case there's more to the story

Thanks for your help sir!
 

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

Back
Top