[SOLVED] Windows Server 2016 failing updates error 0x80246002

Gratiskeder

Well-known member
Joined
May 27, 2022
Posts
148
Windows update failing with error 0x80246002.
SFC and DISM seems to run fine, but updates still failing.
ComponentScanner do not find any corruption
Component Store have been cleaned up
Windows update troubleshooter still says there is something with the update database
Have renamed %systemroot%\SoftwareDistribution\Download
 

Attachments

Hi,

Export CBS (Component Based Servicing) hive
  • Click on the Start button and type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).

    622dbef75cd3a-Export-CBS-hive.png

  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send > Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
Which language packs are installed on this server?
Code:
DISM /online /get-intl > "%userprofile%\desktop\DISM-lang.txt"
 
Thanks, please run the following script to set all the other LP references to absent 0x0.

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 SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
62151e1bebac4-SFCFix-Txt-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.

Afterwards attempt to update, if it fails attach a new copy of the CBS logs as well as a copy of the Component Based Servicing hive.
 

Attachments

Code:
2023-07-21 15:50:23, Error                 CBS    Failed to ask UI handler to terminate. [HRESULT = 0x800706ba - RPC_S_SERVER_UNAVAILABLE]

There are more issues, please run the following DISM command and attach the latest CBS logs. I suspect it will fail because of remnants of some older updates.
Code:
DISM /online /cleanup-image /RestoreHealth
 
Please do also the following to check the hash value for the following file:
Code:
certutil -hashfile %SystemRoot%\WinSxS\x86_microsoft-windows-d..omerfeedbackmanager_31bf3856ad364e35_10.0.14393.1480_none_f5b98eab30791f1c\imecfmps.dll SHA256

This SHA256 hash should be:
Code:
9d3e40d6ce36de5b6a0d18bebc58f9ade8e5f6778049aa22fd8e2b47da39c304
 
DISM fails as expected. CBS attached
Code:
C:\WINDOWS\system32>DISM /online /cleanup-image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.14393.4169

Image Version: 10.0.14393.4169

[==========================100.0%==========================]
Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

Certutil command fails with the following
Code:
C:\WINDOWS\system32>certutil -hashfile %SystemRoot%\WinSxS\x86_microsoft-windows-d..omerfeedbackmanager_31bf3856ad364e35_10.0.14393.1480_none_f5b98eab30791f1c\imecfmps.dll SHA256
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.
 

Attachments

Here's the next fix.

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

DISM completed successfully
Code:
C:\WINDOWS\system32>DISM /online /cleanup-image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.14393.4169

Image Version: 10.0.14393.4169

[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
 

Attachments

Great, please attempt to update. If it fails attach a new copy of the CBS logs.
 
Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • 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.
  • 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.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
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 SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
62151e1bebac4-SFCFix-Txt-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.

Afterwards attempt to update. If it fails attach a new copy of the CBS logs.
 

Attachments

Please restart the server and attempt to update again, if it fails again post the latest CBS logs.
 

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

Back
Top