[SOLVED] Unable to do windows update on Windows server 2016 with error 0x80246002

joythomas

Well-known member
Joined
Feb 9, 2024
Posts
74
Unable to do windows update on Windows server 2016 with error 0x80246002.
Tried DISM repairs, SFC scan etc. At some stage it was showing a component store corruption.
 

Attachments

Updated cbs logs which shows error attached.. "2024-02-09 08:26:46, Error CBS Session: 31087301_3381221169 failed to perform store corruption detect and repair operation. [HRESULT = 0x800f0821 - CBS_E_ABORT]".
 

Attachments

Hi and welcome to Sysnative,

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

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
 

Attachments

Ran the SFCFIX and the dism command. DISM command failed with file not found. Attaching the CBS logs and sfcfix.txt.
 

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

The DISM command completed successfully without any error.
I rebooted the server and run the windows update. It completed the update but uninstalled the update during the reboot (saying update not completed).
The error "Installation Failure: Windows failed to install the following update with error 0x80070002: 2024-02 Cumulative Update for Windows Server 2016 for x64-based Systems (KB5034767)".
Thanks for the continued support. What else to be checked? Any logs to be uploaded?
 
Hi,

Upload the setupapi.dev.log file
  • Open Windows Explorer and browse to the C:\Windows\INF folder.
  • Right-click on the file setupapi.dev.log 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.
657716925b62b-setup-api-dev-folder.png

  • Attach the file setupapi.dev.zip in your next reply.
 
Hi,

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 System File Checker and post the result. If it fails attach a new copy of the CBS log.
Code:
SFC /Scannow
 

Attachments

Step 1. Upload your DRIVERS Hive
  • Navigate to C:\Windows\System32\config and locate the DRIVERS 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 DRIVERS.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.


Step 2. Export registry key as hive file.
  • Open the Start menu of Windows and type CMD.
  • When you see Command Prompt on the list, select the option Run as administrator.
  • Copy and paste the following command into the command prompt and press enter.
Code:
reg save "HKLM\SYSTEM\DriverDatabase" "%userprofile%\Desktop\DriverDatabase.hiv"
  • Once done, a file will appear on your desktop, called DriverDatabase.hiv.
  • ZIP this file and attach it to your next reply.


Step 3. Upload a new copy of the setupapi.dev.log file
  • Open Windows Explorer and browse to the C:\Windows\INF folder.
  • Right-click on the file setupapi.dev.log 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.
657716925b62b-setup-api-dev-folder.png

  • Attach the file setupapi.dev.zip in your next reply.
 
Hi,

Please follow these instructions to run the
577bf0efb8088-FRST.png
Farbar Recovery Scan Tool with system privileges.

Download the 64 bit version: - Farbar Recovery Scan Tool Link

Warning: This script was written specifically for this system. Do not run this script on another system.
  • Download PsExec from Microsoft Sysinternals to your desktop.
  • Unzip PsTools.zip to its own directory on the system drive, for example: C:\Tools\PsTools
  • Navigate in an elevated command prompt to the PsTools directory: cd C:\Tools\PsTools.
  • Now copy and paste the following command into the command prompt and press enter. Click on the Agree button when the licence agreement of PsExec appears.
  • Note: Ensure that both FRST64.exe and the Fixlist.txt file are on your desktop! Otherwise you'll need to ammend the command to the right location.
    Code:
    psexec -i -d -s "%userprofile%\desktop\FRST64.exe"
  • FRST will make a new backup of the registry first, please wait until this process is completed.
  • Ensure the provided Fixlist.txt is in the same location as FRST64.exe and then press the Fix button.
  • If for some reason the tool needs a restart, please make sure you let the system restart normally.
  • When finished, a log called Fixlog.txt will appear in the same directory the tool is run from.
  • Post the logfile Fixlog.txt as attachment in your next reply.
 

Attachments

The fix has been not applied as it seems, please run the following command in an elevated prompt to check this key.
Code:
reg query HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverInfFiles\pci.inf

It should be give a result like below:
Rich (BB code):
HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverInfFiles\pci.inf
    (Default)    REG_MULTI_SZ    pci.inf_amd64_43d48527014aa9a9
    Active    REG_SZ    pci.inf_amd64_43d48527014aa9a9
    Configurations    REG_MULTI_SZ    PCI_ROOT\0PCI_BRIDGE\0PciIoSpaceNotRequired\0PciSriovSupported\0PciAcsNotRequired\0PciASPMOptIn\0PciASPMOptOut\0PciD3ColdSupported\0PciDoNotUseAcs\0PciEnableAllBridgeInterrupts\0PciAtomicsOptIn\0PciExtraSettleTimeRequired\0PciIgnoreErrorsDuringPLDR
 
Ran the previous command once again and this is the query result.
reg query HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverInfFiles\pci.inf

HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverInfFiles\pci.inf
(Default) REG_MULTI_SZ pci.inf_amd64_43d48527014aa9a9
Active REG_SZ pci.inf_amd64_43d48527014aa9a9
Configurations REG_MULTI_SZ PCI_ROOT\0PCI_BRIDGE\0PciIoSpaceNotRequired\0PciSriovSupported\0PciAcsNotRequired\0PciASPMOptIn\0PciASPMOptOut\0PciD3ColdSupported\0PciDoNotUseAcs\0PciEnableAllBridgeInterrupts\0PciAtomicsOptIn\0PciExtraSettleTimeRequired\0PciIgnoreErrorsDuringPLDR
 

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

Back
Top