Windows Updates Failing with Error 0x80040154

yosifcuervo

Member
Joined
Nov 17, 2015
Posts
5
Hello, I am wondering if anyone here can help me. I am on Win11 Insider Preview (Beta), and CU's have been failing to install for the last few months. I have tried the standard fixes (resetting the agent, renaming catroot2, etc), but this has not helped. DISM scans fail as well - I see the same 0x80040154 error in CBS.log and DISM.log

This is from my CBS.log:

CBS Failed to create CBS worker - waiting for a second and trying again [HRESULT = 0x80040154]
CBS Failed to create CBS worker, crashed? [HRESULT = 0x80040154]
CBS Failed to get worker process. [HRESULT = 0x80040154]
CBS Failed to create worker session. [HRESULT = 0x80040154]
CBS Failed to get worker session. [HRESULT = 0x80040154]

Any advice would be appreciated.
 
If you still require assistance, then please open an command prompt window and then enter the following:

Code:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"
reg query "HKEY_CLASSES_ROOT\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"

Additionally, please provide your COMPONENTS hive using the following instructions:

Retrieve Components Hive
1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
2. Please copy this file to your desktop.
Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
3. Right-click on this file on your desktop and select Send To...Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
4. The file will likely be too large to upload here so please upload to a file sharing service. Examples of services to upload to are Dropbox or OneDrive or WeTransfer and then just provide the link in your reply.
 
Thanks for the reply! Here is the result of the reg query commands:

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version
10.0.22621.3139 REG_EXPAND_SZ %SystemRoot%\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.3139_none_e967c4fc42c728b0
10.0.22621.1616 REG_EXPAND_SZ %SystemRoot%\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1616_none_e92ff55842f13a86


reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32
(Default) REG_EXPAND_SZ %SystemRoot%\winsxs\x86_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1616_none_8d1159d48a93c950\TiWorker.exe


reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32
(Default) REG_EXPAND_SZ %SystemRoot%\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1616_none_e92ff55842f13a86\TiWorker.exe


reg query "HKEY_CLASSES_ROOT\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32"

HKEY_CLASSES_ROOT\CLSID\{0823B6F8-F499-4d5e-B885-EA9CB4F43B24}\LocalServer32
(Default) REG_EXPAND_SZ %SystemRoot%\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1616_none_e92ff55842f13a86\TiWorker.exe


I have also attached a copy of my COMPONENTS hive, thanks!
 

Attachments

Thanks, could you please try the following:

SFCFixScript.txt

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 SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.

Afterwards, please try and run DISM /Online /Cleanup-Image /RestoreHealth
 

Attachments

Last edited:
I thought this had worked (the updates will now download, and the installation progresses further than before) - but it still failed to install. I will post again with more details.
 
Last edited:
Thank you for the help - the DISM cleanup completes successfully, which is further than I was able to get before. At this point, a CU will download, but I still receive an error partway through installation. The error has changed to 0x8007371b. Is there anything else I could provide to help diagnose them problem?
 
Sure thing, here you go. There isn't much in the folder at the moment, I just tried to install the CU again and it cleared out most of the persist logs during that process. What's there should show a fresh attempt to install the update though.
 

Attachments

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

Back
Top