[SOLVED] Windows Update corruption

rclarke

Well-known member
Joined
Jul 25, 2022
Posts
68
I have been trying to resolve a broken Windows Update. I'm unable to install the required updates either form Updates itself or by running the .msu file from the Microsoft Update Catalog.
I've been trying to get DISM to clean up the catalog but I'm having no luck, at all.
So I hope that someone on here will be able to assist.

When running dism.exe /online /Cleanup-Image /StartComponentCleanup
This is the result in the CBS log.
I've also attached the log.

Code:
2022-07-25 13:01:49, Error                 CSI    00006819 (F) STATUS_CANNOT_DELETE #18964133# from Windows::Rtl::SystemImplementation::CDirectory::DeleteExistingFile(...)[gle=0xd0000121]
2022-07-25 13:01:49, Error                 CSI    0000681a (F) STATUS_CANNOT_DELETE #18964132# from Windows::Rtl::SystemImplementation::CDirectory_IRtlDirectoryTearoff::DeleteExistingFile(flags = (MissingFileIsOk|MarkDeletePending|OpenForBackup|DeleteIfReadOnly|SharingViolationIsOk|TransactionalConflictIsOk), oa = @0x5bfe5fe9f0->SIL_OBJECT_ATTRIBUTES {s:40; on:"0017c6c2e3b3728622f9fc7555df0b7f076b543dca26b425adce71033b0bb73e.cat"; a:(OBJ_CASE_INSENSITIVE)}, disp = Invalid)
[gle=0xd0000121]
2022-07-25 13:01:49, Error                 CSI    0000681b (F) STATUS_CANNOT_DELETE #13399124# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 0[gle=0xd0000121]
2022-07-25 13:01:49, Error                 CSI    0000681c (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #13399025# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80070005]
2022-07-25 13:01:49, Error                 CSI    0000681d (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #13399023# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 22, pSink = NULL, disp = 0, coldpatching = FALSE)[gle=0x80070005]
2022-07-25 13:01:49, Error                 CSI    0000681e (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #13399022# 58640692 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x00000016, pSink = NULL, disp = 0)
[gle=0x80070005]

I appreciate any response.
Thanks.
 

Attachments

Hi, I have read through the 'How to report a Windows Update issue' & have run through the outlined steps.

I've run SFC /scannow
Also - Dism /Online /Cleanup-Image /RestoreHealth
& Run SFCFix

Here is a link to the zipped CBS folder
CBS.zip

SFC did not find anything to report on

Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-07-26 10:30:05.925
Microsoft Windows Server 10 Build 14393 - amd64
Not using a script file.




AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.



Failed to generate a complete zip file. Upload aborted.


SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2022-07-26 11:12:35.677
----------------------EOF-----------------------
 
Rich (BB code):
2022-07-25 12:24:10, Error                 CSI    000006fe (F) c0000265 [Error,Facility=(system),Code=613 (0x0265)] #79005790# from Windows::Rtl::SystemImplementation::CSystemIsolationLayer_IRtlSystemIsolationLayerTearoff::TransferFile(flags = (OpenForBackupIntent), op = 'HardLinkWithCopyFallback', odir = NULL, oname = [l:98]'\??\C:\Windows\Servicing\Packages\Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat', ndir = @0x20c98460eb0, nname = [l:40 ml:63]'ce89840f19a0d8017a260000d015401a_catalog', disp = Unmapped disposition: 0)
[gle=0xd0000265]
2022-07-25 12:24:10, Error                 CSI    000006ff (F) HRESULT_FROM_WIN32(1142) #78982671# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80070476]
2022-07-25 12:24:10, Error                 CSI    00000700 (F) HRESULT_FROM_WIN32(1142) #78982670# from Windows::ServicingAPI::CCSITransaction::AddCatalog(Flags = 1, CatalogPath = '\\?\C:\Windows\Servicing\Packages\Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat')[gle=0x80070476]
2022-07-25 12:24:10, Error                 CSI    00000701 (F) HRESULT_FROM_WIN32(1142) #78982669# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_InstallDeployment(Flags = 0, a = b7d560d0818d9360531dd90e88c1a1d1, version 4.0.15744.161, arch amd64, nonSxS, pkt {l:8 b:b03f5f7f11d50a3a}, cb = (null), s = (null), rid = 'Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.4486129-719_neutral', rah = '8', manpath = (null), catpath = '\\?\C:\Windows\Servicing\Packages\Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat', disp = 0)[gle=0x80070476]
2022-07-25 12:24:10, Info                  CBS    Failed to begin deployment installation for Update: 4486129-719_neutral [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-25 12:24:10, Info                  CBS    Failed to execute item[0] in Package: Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106, Update: 4486129-719_neutral [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-25 12:24:10, Info                  CBS    Failed to execute execution update. [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-25 12:24:10, Info                  CBS    Failed to execute execution package: Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106 [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-25 12:24:10, Info                  CBS    Failed to prepare execution [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]

Could you please open an elevated command prompt and enter the following command:

Rich (BB code):
fsutil hardlink list %systemroot%\Servicing\Packages\Package_11_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat

Please post the output in your next post.
 
Hi, thanks for the reply.
The referenced package is .Net4.8 which was the first update that failed to install - so that makes sense.
I have attached the output from the command you posted. I've attached it as there are many rows.
 

Attachments

Thank you, it seems that the hardlink limit has been reached for that file due to all the unnecessary hardlinks to the temp folder.

Remove Update Manually
1. Click on the Start button and in the search box, type Command Prompt
2. When you see Command Prompt on the list, right-click on it and select Run as administrator
3. When command prompt opens, copy and paste the following command into it, and press Enter
wusa /uninstall /KB:4486129

4. Let me know if it says it was successful or if there are any errors.

If that fails, because the update isn't installed, then please search the registry using FRST64:

FRST Registry Search
1. Click your Start button and type in cmd.
2.After you find the Command Prompt, right click on it and select Run as Administrator.
3. Copy and paste the following into the Command Prompt:

reg load HKLM\COMPONENTS C:\WINDOWS\SYSTEM32\CONFIG\COMPONENTS

4. Please download Farbar Recovery Scan Tool and save it to your Desktop.
Note: You need to run the 64-bit Version so please ensure you download that one.
5. Run FRST64 by Right-Clicking on the file and choosing Run as administrator.
6. Copy and paste KB4486129 into the Search box and click the Search Registry button.
7. When the scan is complete a notepad window will open with the results. Please attach this to your next reply. It is saved on your desktop named SearchReg.txt.
 
Thanks for your continued efforts.
The command wusa /uninstall /KB:4486129 was not able to find the update installed. But there were no errors.

I have attached the resulting log file from the FRST64 registry search.
I look forward to your next reply.
 

Attachments

FRST Fix
NOTICE: This script was written specifically for this user, for use on that particular machine. Running this on another machine may cause damage to your operating system
1. Download the attached fixlist.txt and save it to the Desktop.
Note. It's important that both files, FRST64 and fixlist.txt are in the same location or the fix will not work (in this case...the desktop).
2. Run FRST64 by Right-Clicking on the file and choosing Run as administrator.
3. Press the Fix button just once and wait. If for some reason the tool needs a restart, please make sure you let the system restart normally. After that let the tool complete its run.
4. When finished FRST64 will generate a log on the Desktop (Fixlog.txt). Please post the contents of it in your reply.

If successful, then please attempt to install the problematic update(s) again. If the update fails, then please attach the latest CBS log.
 

Attachments

I ran the fix and examined the log afterwards.
This seemed to have succesfully removed the required Registry entries.
So I Ran window updates once more (without a reboot - was that correct?)
Unfortunately the updates failed to isntall so I have uploaded the CBS.log here:
CBS.log
 

Attachments

Rich (BB code):
2022-07-28 13:09:21, Error                 CSI    0000054c (F) HRESULT_FROM_WIN32(1142) #10017015# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80070476]
2022-07-28 13:09:21, Error                 CSI    0000054d (F) HRESULT_FROM_WIN32(1142) #10017014# from Windows::ServicingAPI::CCSITransaction::AddCatalog(Flags = 1, CatalogPath = '\\?\C:\Windows\Servicing\Packages\Package_819_for_KB5015808~31bf3856ad364e35~amd64~~10.0.1.6.cat')[gle=0x80070476]
2022-07-28 13:09:21, Error                 CSI    0000054e (F) HRESULT_FROM_WIN32(1142) #10017013# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_InstallDeployment(Flags = 0, a = dd4510f6d879a018f58508400463c241, version 10.0.14393.2457, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35}, cb = (null), s = (null), rid = 'Package_819_for_KB5015808~31bf3856ad364e35~amd64~~10.0.1.6.5015808-1595_neutral', rah = '2', manpath = (null), catpath = '\\?\C:\Windows\Servicing\Packages\Package_819_for_KB5015808~31bf3856ad364e35~amd64~~10.0.1.6.cat', disp = 0)[gle=0x80070476]
2022-07-28 13:09:21, Info                  CBS    Failed to begin deployment installation for Update: 5015808-1595_neutral [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-28 13:09:21, Info                  CBS    Failed to execute item[0] in Package: Package_819_for_KB5015808~31bf3856ad364e35~amd64~~10.0.1.6, Update: 5015808-1595_neutral [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-28 13:09:21, Info                  CBS    Failed to execute execution update. [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-28 13:09:21, Info                  CBS    Failed to execute execution package: Package_819_for_KB5015808~31bf3856ad364e35~amd64~~10.0.1.6 [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]
2022-07-28 13:09:21, Info                  CBS    Failed to prepare execution [HRESULT = 0x80070476 - ERROR_TOO_MANY_LINKS]

It's the same error but with a different package this time. Could you please repeat our previous steps with WUSA and FRST64? The update is KB5015808 this time.
 
Thanks, could you please run the attached FRST fix script? Once done, then please attempt to install one of the problematic updates again.
 

Attachments

It looks like the hardlink errors have gone this time, however, we've got another couple of errors. Could you please run the following SFCFixScript?

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.[/list]

    Afterwards, please attempt to install the problematic update(s) again.
 

Attachments

Hi, I have run through those steps.
Here is the output from the SFCFix log
Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-07-29 10:19:11.525
Microsoft Windows Server 10 Build 14393 - amd64
Using .txt script file at C:\Users\coodes.admin\Desktop\SFCFixScript.txt [0]




TrustedInstaller::
Successfully set file ownership to TrustedInstaller for C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat
Successfully set file ownership to TrustedInstaller for C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat
TrustedInstaller:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2022-07-29 10:19:11.556
Script hash: qTPan/dD7MC9+pX71qV0sGmmsvnPmojPKg7PAM53+vs=
----------------------EOF-----------------------
Sorry to report that the updates failed to install once again.
Here is the CBS log
CBS.log
 
Hmm, let's try and delete the files using SFCFix rather than rely on the TrustedInstaller to do it. It still seems to be having trouble with deleting those two packages.
 

Attachments

Sorry to say that the files failed to be deleted.
Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-07-29 11:20:50.357
Microsoft Windows Server 10 Build 14393 - amd64
Using .txt script file at C:\Users\coodes.admin\Desktop\SFCFixScript.txt [0]




Delete::
Failed to delete all files and folders matching pattern C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat with result code 1.
Failed to delete all files and folders matching pattern C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat with result code 1.
Delete:: directive failed to complete successfully.




Failed to process all directives successfully.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2022-07-29 11:20:50.389
Script hash: eLh+lrue18VeLmCkRqoNM8R1CDB47VN67HcR4YBmgr0=
----------------------EOF-----------------------
 
Open an command prompt window and then enter the following commands, please post the output in your next post:

Rich (BB code):
icacls C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat
icacls C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat
 
Here you go
Code:
C:\Windows\system32>icacls C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat
C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat NT AUTHORITY\SYSTEM:(I)(F)
                                                                                               BUILTIN\Administrators:(I)(F)
                                                                                               BUILTIN\Users:(I)(RX)
                                                                                               APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(I)(RX)
                                                                                               APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(I)(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>icacls C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat
C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat NT AUTHORITY\SYSTEM:(I)(F)
                                                                                            BUILTIN\Administrators:(I)(F)
                                                                                            BUILTIN\Users:(I)(RX)
                                                                                            APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(I)(RX)
                                                                                            APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(I)(RX)

Successfully processed 1 files; Failed processing 0 files
 
For some reason, the TrustedInstaller hasn't been set as the default owner for those two packages despite SFCFix reporting that it did? It would explain why we weren't able to delete it using Delete:: either.

Could you please run the attached SFCFixScript which will attempt to set the TrustedInstaller as the owner for one of the packages, afterwards please run the following command and post the output in your next post:

Rich (BB code):
icacls C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat

If you don't see the TrustedInstaller listed as one of the owners then please open an elevated command prompt and enter the following command:

Rich (BB code):
icacls "C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat" /T /Q /C /RESET

If successful, then please run the original icacls command again and check if the TrustedInstaller has been set.
 

Attachments

Hi, the SFCFix didn't work. It was the icacls reset that eventually (it took a long time to process) reset the acl
Code:
C:\Windows\system32>icacls C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat
C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat NT AUTHORITY\SYSTEM:(I)(F)
                                                                                            BUILTIN\Administrators:(I)(F)
                                                                                            BUILTIN\Users:(I)(RX)
                                                                                            APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(I)(RX)
                                                                                            APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(I)(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>icacls "C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat" /T /Q /C /RESET
Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>icacls C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat
C:\Windows\Servicing\Packages\Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.3106.cat BUILTIN\Administrators:(I)(F)
                                                                                            NT AUTHORITY\SYSTEM:(I)(F)
                                                                                            NT SERVICE\TrustedInstaller:(I)(F)
                                                                                            BUILTIN\Users:(I)(RX)

Successfully processed 1 files; Failed processing 0 files
At this stage I presume the same thing will need to be run for the other package?

Should I run?

Code:
icacls "C:\Windows\Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.5246.1.6.cat" /T /Q /C /RESET
 

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

Back
Top