[SOLVED] System registry is corrupted, and no backups are available!

Joined
Jun 13, 2024
Posts
12
After a power outage, the registry in my system became corrupted, and it no longer boots (it says corrupted registry). I need some help, and I have found very little information on the Internet...

if I run

dism /image:g: /cleanup-image /scanhealth

I get error "Error: 1009", telling me the registry is corrupt.

This windows version doesn't have a backup of the registry, which is awful (in this case, the system ceased to boot after a power outage event!. The system registry is no longer backed up to the RegBack folder starting in Windows 10 version 1803 - Windows Client

dism log isn't particular helpful...

2024-06-13 23:30:15, Info CBS Offline image is writable
2024-06-13 23:30:15, Info CBS Loading offline registry hive: SOFTWARE, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SOFTWARE' from path '\\?\G:\Windows\System32\config\SOFTWARE'.
2024-06-13 23:30:16, Info CBS Loading offline registry hive: SYSTEM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SYSTEM' from path '\\?\G:\Windows\System32\config\SYSTEM'.
2024-06-13 23:30:16, Info CBS Failed to load offline \\?\G:\Windows\System32\config\SYSTEM hive from '\\?\G:\Windows\System32\config\SYSTEM' into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SYSTEM'. [HRESULT = 0x800703f1 - ERROR_BADDB]
2024-06-13 23:30:16, Info CBS Failed to load offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SYSTEM [HRESULT = 0x800703f1 - ERROR_BADDB]
2024-06-13 23:30:16, Info CBS Failed to load offline SYSTEM hive. [HRESULT = 0x800703f1 - ERROR_BADDB]

I have attached the config file of the registry...

Any help is appreciated. Thank you.
 

Attachments

Hi and welcome to Sysnative,

Attached a repaired copy of the SYSTEM hive, let us know if you need assistance in replacing this hive using the Recovery Environment of Windows.
 

Attachments

Hi,

You're welcome. But I would also run the following command just to be sure there are no remaining corruptions.

Run the following DISM command and post the result. If it fails attach a copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 
thank you for your help.
it gives an error (Error: 0x800f081f, no source files).
I tried using Windows 10 media as source, and it keeps giving this error... dism log is attached...
 

Attachments

Please post the CBS logs, the DISM logs are not very helpful.

Upload a copy of the CBS folder
  • 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.
653a64385d891-618e949e09fef-CBS-Folder.png

  • Attach the file CBS.zip to your next reply. If the file is too large to attach, upload the CBS.zip file to www.wetransfer.com and post the link in your next reply.
 
Hi,

The SFCFix.zip is too large to attach, so I've uploaded it here: SFCFix.zip

Step 1. Download
6530fbb0f4101-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 SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
650c22f99662d-6190d993a26f3-SFCFix-Zip-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. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 
Here's the next fix:SFCFix.zip

Step 1. Download
6530fbb0f4101-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 SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
650c22f99662d-6190d993a26f3-SFCFix-Zip-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. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 
Thank you very much. It still gives errors.
In particular, it gives this "Acces Denied" error with a file, which I cannot access normally by using the file browser:
C:\Windows\WinSxS\amd64_microsoft-windows-e..-firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe

(the two points are actual part of the file path)

If I go to the file propierties, I still cannot access this file.
 

Attachments

Rich (BB code):
2024-06-26 16:02:56, Info                  CBS    (p)	CSI Payload Corrupt	(n)			amd64_microsoft-windows-e..-firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe
2024-06-26 16:02:56, Info                  CBS    Repair failed: Missing replacement payload.

I noticed that too as well as in the previous log, so please run the following command in an elevated prompt and copy and paste the result.
Code:
certutil -hashfile "%Systemroot%\WinSxS\amd64_microsoft-windows-e..-firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe" SHA256
 
Windows consistently reports "File not found". 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
I tried in safe mode, it's the same problem. File name cannot be changed.
If I access this drive from linux, it turns out that's a symlink. The destination says "unsupported reparse tag 0x80000017".
However, I think I can access the file via gmer...
1719423992356.png
 
I was somewhat able to solve it.

I also was unable to edit this file as a reparse point.
Code:
fsutil reparsepoint delete C:\Windows\WinSxS\amd64_microsoft-windows-e..firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe
fsutil reparsepoint query C:\Windows\WinSxS\amd64_microsoft-windows-e..firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe
say "File not found"

Code:
("C:\Windows\WinSxS\amd64_microsoft-windows-e..-firsttimeinstaller_31bf3856ad364e35_10.0.19041.479_none_3117e2c9c60d5cfb\MicrosoftEdgeStandaloneInstaller.exe" | get-item -force).LinkType
also says "File not found"

I managed to take ownership of the parent folder with "takeown" command, and I enabled all permissions. I closed all apps, including onedrive, just in case, and closed Avast shields. Then I deleted the parent folder. I run the last SFCFix file provided, and it ended with no errors. DISM /online /cleanup-image /RestoreHealth managed to end successfully. I'm installing Windows Updates now...
 
When all is sorted you might want to get rid of Avast and use the built in Windows Security. Times have changed and 3rd party AV's can cause problems or at best, slow things down.
 
It is all solved.
KB5034441 update failed after because windows RE was not properly configured and this update applies to Windows RE.

To solve that, I did this (in case it helps):
  1. Increased the size of Recovery partition.
  2. set the id of the recovery partition to de94bba4-06d1-4d40-a16a-bfd50179d6ac . (see KB5028997: Instructions to manually resize your partition to install the WinRE update - Microsoft Support for more information). I used diskpart, select disk ..., select partition ..., and set id .
  3. Then I entered reagentc /disable and reagentc /enable in an elevated command prompt.
Thanks to everyone.
 

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

Back
Top