Windows Update settings screen on laptop with technician hands typing
KB5004945Windows UpdateWindows

Fix Windows KB5004945 Update Error – Windows 10, Windows 11 2026

KB5004945 update installation fails due to corrupted system files, insufficient disk space, or Windows Update service conflicts. Primary fix involves running SFC scan and resetting Windows Update components.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
10 Mar 202612 min read43 views

Last updated 11 Mar 2026

Error CodeKB5004945
ProductWindows Update
KB ArticleKB5004945
Solutions5 methods
Sources3 official
Affected SystemsWindows 10, Windows 11
Quick Fix

Run Windows Update Troubleshooter from SettingsUpdate & SecurityTroubleshoot, then execute sfc /scannow in Command Prompt as administrator to repair corrupted system files preventing KB5004945 installation.

Symptoms

  • KB5004945 update fails to install with generic error messages
  • Windows Update shows 'Installation failed' or 'Download failed' status
  • System restarts but update rollback occurs automatically
  • Error codes 0x80070005, 0x800f0922, or 0x80240034 appear during installation
  • Windows Update service becomes unresponsive or crashes
  • System performance degradation after failed installation attempts

Possible Causes

  • Corrupted Windows Update components or system files
  • Insufficient disk space on system drive (less than 10GB free)
  • Third-party antivirus software blocking update installation
  • Windows Update service dependencies not running properly
  • Registry corruption affecting update mechanisms
  • Conflicting pending updates or incomplete previous installations
  • Group Policy restrictions preventing automatic updates
1

Run Windows Update Troubleshooter and SFC Scan

Start with the built-in troubleshooter to automatically detect and fix common update issues:

  1. Press Windows + I to open Settings
  2. Navigate to Update & SecurityTroubleshootAdditional troubleshooters
  3. Click Windows Update and select Run the troubleshooter
  4. Follow the on-screen prompts and apply any recommended fixes
  5. After completion, open Command Prompt as administrator
  6. Run the System File Checker scan:
sfc /scannow

Wait for the scan to complete (typically 15-30 minutes). If corrupted files are found and repaired, restart your computer.

Verification: Go to SettingsUpdate & SecurityWindows Update and click Check for updates. KB5004945 should now install successfully.

2

Reset Windows Update Components

Manually reset all Windows Update services and clear the update cache:

  1. Open Command Prompt as administrator
  2. Stop Windows Update services:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
  1. Rename the SoftwareDistribution and catroot2 folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
  1. Restart the Windows Update services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
  1. Clear the Windows Update cache completely:
dism /online /cleanup-image /startcomponentcleanup

Pro tip: This process recreates the Windows Update database from scratch, resolving most component corruption issues.

Verification: Restart your computer and check Windows Update. The KB5004945 update should appear and install without errors.

3

Use DISM Tool to Repair Windows Image

Repair the Windows system image using the Deployment Image Servicing and Management tool:

  1. Open Command Prompt as administrator
  2. Check the current image health:
dism /online /cleanup-image /checkhealth
  1. Scan for component store corruption:
dism /online /cleanup-image /scanhealth
  1. If corruption is detected, repair the image:
dism /online /cleanup-image /restorehealth
  1. After DISM completes successfully, run SFC again:
sfc /scannow
  1. Clear the Windows Update cache:
wsreset.exe

Warning: The DISM restore process can take 30-60 minutes and requires an active internet connection to download repair files.

Verification: Restart the system and attempt to install KB5004945 through Windows Update. The update should now proceed without component-related errors.

4

Manual Download and Installation

Download and install KB5004945 manually when automatic installation fails:

  1. Visit the Microsoft Update Catalog website
  2. Search for "KB5004945" in the search box
  3. Identify the correct version for your system architecture (x64, x86, or ARM64)
  4. Download the appropriate .msu file to your Downloads folder
  5. Before installation, ensure sufficient disk space (at least 10GB free)
  6. Right-click the downloaded .msu file and select Install
  7. Alternatively, install via Command Prompt:
wusa.exe "C:\Users\%USERNAME%\Downloads\windows10.0-kb5004945-x64.msu" /quiet /norestart
  1. Monitor the installation progress in the Command Prompt window
  2. If installation fails, try the standalone installer method:
dism /online /add-package /packagepath:"C:\Users\%USERNAME%\Downloads\windows10.0-kb5004945-x64.msu"

Pro tip: Manual installation bypasses Windows Update service issues but requires matching the exact system architecture.

Verification: Check installed updates in SettingsUpdate & SecurityView update history. KB5004945 should appear in the successfully installed updates list.

5

Registry Cleanup and Advanced Troubleshooting

Perform advanced registry cleanup and service configuration when other methods fail:

  1. Create a system restore point before proceeding
  2. Open Registry Editor (regedit.exe) as administrator
  3. Navigate to the Windows Update registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate

  1. Delete the following subkeys if they exist:
  • Auto Update
  • RebootRequired
  • PostRebootReporting
  1. Navigate to the AU registry location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update

  1. Delete the entire Auto Update key if present
  2. Reset Windows Update Agent using PowerShell:
Get-Service -Name wuauserv | Stop-Service -Force
Remove-Item -Path "C:\Windows\SoftwareDistribution" -Recurse -Force
Get-Service -Name wuauserv | Start-Service
  1. Re-register Windows Update DLL files:
regsvr32 /s atl.dll
regsvr32 /s urlmon.dll
regsvr32 /s mshtml.dll
regsvr32 /s shdocvw.dll
regsvr32 /s browseui.dll
regsvr32 /s jscript.dll
regsvr32 /s vbscript.dll
regsvr32 /s scrrun.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml3.dll
regsvr32 /s msxml6.dll
regsvr32 /s actxprxy.dll
regsvr32 /s softpub.dll
regsvr32 /s wintrust.dll
regsvr32 /s dssenh.dll
regsvr32 /s rsaenh.dll
regsvr32 /s gpkcsp.dll
regsvr32 /s sccbase.dll
regsvr32 /s slbcsp.dll
regsvr32 /s cryptdlg.dll

Warning: Registry modifications can cause system instability. Always create a backup before making changes.

Verification: Restart the computer and run Windows Update. KB5004945 should install successfully after the comprehensive cleanup and re-registration process.

Verification

To confirm KB5004945 has been successfully installed:

  1. Open SettingsUpdate & SecurityWindows Update
  2. Click View update history and verify KB5004945 appears in the list
  3. Run the following PowerShell command to check installed updates:
Get-HotFix | Where-Object {$_.HotFixID -eq "KB5004945"}

If the command returns update details including installation date, the update is successfully installed. Additionally, check system stability by running sfc /verifyonly to ensure no new corruption was introduced.

Still Having Issues?

If KB5004945 still fails to install after trying all methods above, consider these advanced alternatives:

  • Clean Boot Installation: Restart in clean boot mode to eliminate third-party software conflicts. Run msconfig, select Selective startup, and disable all startup items and non-Microsoft services.
  • Windows Update Medic Service: Ensure the Windows Update Medic Service is running by executing sc config WaaSMedicSvc start=auto and sc start WaaSMedicSvc in Command Prompt.
  • Group Policy Reset: If domain-joined, check Group Policy restrictions by running gpupdate /force and reviewing Windows Update policies in gpedit.msc.
  • System File Replacement: For persistent corruption, consider using sfc /scannow from Windows Recovery Environment or performing an in-place upgrade installation.
  • Windows Update Assistant: Download and run the Windows 10/11 Update Assistant tool directly from Microsoft to force the update installation.

If none of these solutions work, the issue may require a complete Windows reset or professional technical support, as it could indicate deeper system corruption or hardware-related problems.

Frequently Asked Questions

What is KB5004945 and why is it important?
KB5004945 is a cumulative security update for Windows 10 and Windows 11 that includes critical security patches, bug fixes, and system improvements. It addresses vulnerabilities in Windows components and enhances system stability. Installing this update is crucial for maintaining system security and ensuring compatibility with newer software and hardware.
Why does KB5004945 keep failing to install on my system?
KB5004945 installation failures typically occur due to corrupted Windows Update components, insufficient disk space (less than 10GB free), third-party antivirus interference, or registry corruption. The most common cause is damaged system files that prevent the update mechanism from functioning properly. Running SFC scan and resetting Windows Update components resolves most installation issues.
Can I skip KB5004945 if it keeps failing to install?
Skipping KB5004945 is not recommended as it contains important security patches that protect your system from vulnerabilities. However, you can temporarily defer the update while troubleshooting. Use Group Policy Editor (gpedit.msc) to configure update deferral settings, or manually download and install the update from Microsoft Update Catalog when automatic installation fails.
How long does it take to install KB5004945 successfully?
KB5004945 installation typically takes 15-45 minutes depending on your system specifications and current configuration. The process includes downloading (5-10 minutes), installation (10-20 minutes), and system restart with configuration (10-15 minutes). SSD-equipped systems generally complete installation faster than traditional hard drives. Allow up to 60 minutes for older hardware.
What should I do if my system becomes unstable after installing KB5004945?
If system instability occurs after KB5004945 installation, first try restarting your computer to allow Windows to complete post-installation configuration. If problems persist, use System Restore to revert to a pre-update state, then run Windows Update Troubleshooter and SFC scan before attempting reinstallation. Check Device Manager for driver conflicts and update any problematic drivers. Consider performing a clean boot to identify software conflicts.

Which method worked?

Vote to help others

Official Resources

About the Author

Emanuel DE ALMEIDA

Emanuel DE ALMEIDA

Senior IT Journalist & Cloud Architect

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...