[SOLVED] Windows 2019 - Error KB5040430

Hi and welcome to Sysnative,

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,

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 "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services" "%userprofile%\Desktop\Services.hiv"
  • Once done, a file will appear on your desktop, called Services.hiv.
  • ZIP this file and attach it to your next reply.
 
Please run the following commands in an elevated prompt and copy and paste the result in your next post.
Code:
certutil -hashfile C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.inf SHA256
certutil -hashfile C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.sys SHA256

The result should be:
Code:
SHA256 hash of C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.inf:
a520d423f0c904761ad275dbc83cf363752c48380e6164b61313b06f76034883

SHA256 hash of C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.sys:
84a6f2d7ae9ba7c9d891438491e1474d1a899ccb37fbf577a893de0506f0310c
 
We have reached an important point.

Code:
C:\>certutil -hashfile C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.inf SHA256
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.

C:\>certutil -hashfile C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_eed801326ad7a90b\usbstor.sys SHA256
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.
 
Yes, please do the following.

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.

Afterwards attempt to update again. If it fails attach a new copy of the CBS logs and the Setupapi.dev.log.
 

Attachments

I hadn't seen that the server was already waiting for a reboot to complete the update application.
I restarted and it failed, I repeated the installation and it failed again at 8%.
 

Attachments

Hi,

Start
6530fbb0f4101-56f31e53c97da-SFCFix.PNG
SFCFix again to perform a new search.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-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.
 

Attachments

Hi,

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

Step 2.
Open an elevated prompt and run the following commands and copy and paste the result in your next post.
Code:
reg query HKLM\SYSTEM\DriverDatabase\DriverPackages\usbstor.inf_amd64_eed801326ad7a90b
reg query HKLM\SYSTEM\DriverDatabase\DriverInfFiles\usbstor.inf
 

Attachments

Hi,

Sorry for the delay, Friday is a complicated day!


C:\>reg query HKLM\SYSTEM\DriverDatabase\DriverPackages\usbstor.inf_amd64_eed801326ad7a90b

HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverPackages\usbstor.inf_amd64_eed801326ad7a90b
Version REG_BINARY FFFF090000000000609EFC3665C4CF11805644455354000000808CA3C594C601A617634500000A000000000000000000
Provider REG_SZ Microsoft
SignerScore REG_DWORD 0xd000003
StatusFlags REG_DWORD 0x116
(Default) REG_SZ usbstor.inf


C:\>reg query HKLM\SYSTEM\DriverDatabase\DriverInfFiles\usbstor.inf

HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverInfFiles\usbstor.inf
(Default) REG_MULTI_SZ usbstor.inf_amd64_eed801326ad7a90b\0usbstor.inf_amd64_ecde77a0735d75b1
Active REG_SZ usbstor.inf_amd64_eed801326ad7a90b
Configurations REG_MULTI_SZ USBSTOR_BULK.NT\0USBSTOR_CBI.NT\0USBSTOR_CB.NT\0USBSTOR_CBI_NR.NT
 

Attachments

Hi,

Great, please attempt to update again. If it fails attach a new copy of the CBS logs as well as the Setupapi.dev.log.
 
Hi,

Here's the next fix.

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.

Afterwards attempt to update again. If it fails attach a new copy of the CBS logs and the Setupapi.dev.log.
 

Attachments

It worked, I applied the KB without error.
I'll check on the other server if the error is with this same component.
 
Great, glad to hear this server is up-to-date now.

Please don't use the fixes in this thread on other servers even when the issue seems to be similar. This may harm your system and can only make problems more worse and/or unclear to provide a solution.

Start always a new thread after following the Windows Update Forum Posting Instructions.

I will mark this thread as solved.
 

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

Back
Top