[SOLVED] SFC DISM Dont work after Windows Update installation error

EndEd

Member
Joined
Sep 14, 2023
Posts
5
Hi, Im on Windows 10 Enterprise 22H2 and all my problems start trying to install in windows update KB5030211 - Couldnt install with error 0x800700c1

After some investigation I tried:
chkdsk without problems


sfc /scannow
give me this message: Windows Resource Protection could not start the repair service.
checking the service Windows Modules Installer service I see is auto and running also tried sfc in safe mode with same results.

Then I tried

DISM /Online /Cleanup-Image /RestoreHealth
give me an error 193, %1 is not a valid Win32 application and The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

at the end of the dism.log file I found this errors

2023-09-14 21:23:13, Info DISM DISM Package Manager: PID=4948 TID=3804 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
2023-09-14 21:23:13, Info DISM DISM Package Manager: PID=4948 TID=3804 CBS session options=0x40100! - CDISMPackageManager::Internal_Finalize
2023-09-14 21:23:13, Error DISM DISM Package Manager: PID=4948 TID=3804 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800700c1)
2023-09-14 21:23:13, Error DISM DISM Package Manager: PID=4948 TID=3804 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800700c1)
2023-09-14 21:23:13, Error DISM DISM Package Manager: PID=4948 TID=3804 Failed to restore the image health. - CPackageManagerCLIHandler::processCmdLine_CleanupImage(hr:0x800700c1)
2023-09-14 21:23:13, Error DISM DISM Package Manager: PID=4948 TID=3804 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800700c1)
2023-09-14 21:23:13, Info DISM DISM Package Manager: PID=4948 TID=3804 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2023-09-14 21:23:13, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800700C1
2023-09-14 21:23:13, Info DISM DISM Provider Store: PID=4948 TID=3804 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect

and at the end of the cbs.log got this

2023-09-14 21:28:59, Info CBS Ending TiWorker initialization.
2023-09-14 21:28:59, Info CBS Starting the TiWorker main loop.
2023-09-14 21:28:59, Info CBS TiWorker starts successfully.
2023-09-14 21:28:59, Info CBS Lock: New lock added: CCbsWorker, level: 5, total lock:3
2023-09-14 21:28:59, Info CBS Failed to load Core DLL from path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3385_none_7e1c800a7c81ffd9\\cbscore.dll [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-09-14 21:28:59, Info CBS Failed to initialize CBS class factory. [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-09-14 21:28:59, Info CBS Failed to load Core DLL from path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3385_none_7e1c800a7c81ffd9\\cbscore.dll [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-09-14 21:28:59, Info CBS Failed to initialize CBS class factory. [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-09-14 21:28:59, Info CBS Failed to create a worker session [HRESULT = 0x800700c1]
2023-09-14 21:28:59, Info CBS Failed to create worker session. [HRESULT = 0x800700c1]
2023-09-14 21:28:59, Info CBS Failed to get worker session. [HRESULT = 0x800700c1]
2023-09-14 21:31:00, Info CBS Trusted Installer is shutting down because: SHUTDOWN_REASON_AUTOSTOP

Finally I create an ISO image file with media creation tool so I could update the system keeping files and apps, but at some final point before first reset gives me and error without any number and stops.

Hope anyone can take a look at the logs and point me in the right direction. TIA
 

Attachments

Hi and welcome to Sysnative,

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 SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
65058e1134cae-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
 

Attachments

First off all, thanks, you are a magician... It seems that do the trick. DISM works and finish 100% without issues. SFC works also and finish 100% finding damage files and repair them automaticaly. Im now trying again windows update, the same KB5030211 that give me problems before. After it finish installing i will edit this and post and tell how it went.
 

Attachments

  • SFCFix.txt
    SFCFix.txt
    41 KB · Views: 5
  • DISM.PNG
    DISM.PNG
    47 KB · Views: 10
Hi,

You're welcome. Glad to hear the problem has been resolved...(y)
 
Well it seem windows update got another error 0x800700c1 trying to intall KB5031356 that result in the same problems as before:

sfc /scannow
give me this message: Windows Resource Protection could not start the repair service.
checking the service Windows Modules Installer service I see is auto and running also tried sfc in safe mode with same results.

DISM /Online /Cleanup-Image /RestoreHealth
give me an error 193, %1 is not a valid Win32 application and The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

checking the cbs.log got lots of this:

Code:
2023-10-11 20:45:38, Info                  CBS    Failed to load Core DLL from path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3562_none_7e0523f67c93b82a\\cbscore.dll [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-10-11 20:45:38, Info                  CBS    Failed to initialize CBS class factory. [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-10-11 20:45:38, Info                  CBS    Failed to create a worker session [HRESULT = 0x800700c1]
2023-10-11 20:45:38, Info                  CBS    Failed to create worker session. [HRESULT = 0x800700c1]
2023-10-11 20:45:38, Info                  CBS    Failed to get worker session. [HRESULT = 0x800700c1]
2023-10-11 20:46:01, Info                  CBS    Failed to load Core DLL from path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3562_none_7e0523f67c93b82a\\cbscore.dll [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-10-11 20:46:01, Info                  CBS    Failed to initialize CBS class factory. [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-10-11 20:46:01, Info                  CBS    Failed to load Core DLL from path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3562_none_7e0523f67c93b82a\\cbscore.dll [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]
2023-10-11 20:46:01, Info                  CBS    Failed to initialize CBS class factory. [HRESULT = 0x800700c1 - ERROR_BAD_EXE_FORMAT]

So I hope you can help me one more time and maybe, if you can, explain why this happen because now it feels like is going to happen again in the future. Never have this problem in so many years and 2 times in a month.... I dont know. TIA
 

Attachments

Hi,

The last few weeks I have seen a number of similar cases, so maybe it is a bug with specific updates?

Step 1.
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
 

Attachments

That seem to do the trick, SFC works now, DISM finish without issues, Tried Windows Update KB5031356 that gives problems before and it installed correctly so it seems is all fine now. Thanks for yor help, really.
 

Attachments

Hi,

You're welcome. I will mark this thread as solved again and let's hope the next LCU will install without any issues...
 

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

Back
Top