Fix Windows Update Error 0x80004005 and DISM Cant Restore Health

Abstract: Resolve Windows Update Error 0x80004005 and DISM health restoration failures by cleaning the update cache and repairing corrupted system files.

Created: 2026-10-09 by
Windows Update Error 0x80004005 typically indicates a corruption in the Windows Component Store or system files that prevents DISM from repairing health. To resolve this, you must run specific System File Checker and Deployment Image Servicing and Management commands in an elevated Command Prompt to rebuild the component store and clear corrupted update cache files.

Understanding the Root Cause

The error code 0x80004005 is a generic failure often associated with permission issues, network problems, or, most commonly, corrupted system files. When the Deployment Image Servicing and Management (DISM) tool fails to restore health, it usually means the underlying source files required for repair are themselves damaged or inaccessible. This creates a circular problem where you cannot fix the update mechanism because the repair tool relies on the very files that are broken. This issue frequently occurs after interrupted updates, aggressive third-party antivirus interference, or sudden system crashes. The Windows Component Store, located at C:\Windows\WinSxS, acts as the repository for all system files. If this store becomes inconsistent, Windows Update cannot verify the integrity of new installations, leading to the 0x80004005 error. Addressing this requires a systematic approach to clean the cache, verify file integrity, and force a refresh of the update components.

Step 1: Clean the Windows Update Cache

Before attempting complex repairs, it is crucial to remove any partially downloaded or corrupted update files that may be blocking the process. The Windows Update service stores temporary files in the SoftwareDistribution folder. If these files are corrupt, the update agent will repeatedly fail with the same error. Follow these steps to clear the cache safely:
  1. Stop the Update Services: Open the Start menu, type cmd, right-click "Command Prompt," and select "Run as administrator." In the elevated window, execute the following commands one by one, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  2. Rename Cache Folders: Execute the following commands to rename the folders instead of deleting them. This forces Windows to recreate fresh versions of these directories.
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
  3. Restart Services: Restart the services you stopped earlier using these commands:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
After completing these steps, attempt to check for updates again. If the error persists, proceed to the next phase of repair.

Step 2: Run System File Checker (SFC)

The System File Checker (SFC) tool scans protected system files and replaces incorrect versions with correct Microsoft versions. However, SFC depends on the Windows Component Store. If the component store is heavily corrupted, SFC might fail or report that it cannot perform the required operation. Running SFC before DISM can sometimes resolve minor corruptions without needing the more invasive DISM repair. Open an elevated Command Prompt again and type the following command:
sfc /scannow
Wait for the process to complete. It may take 15-30 minutes. Do not interrupt the process. Once finished, review the results. If SFC reports that it found corrupt files and successfully repaired them, restart your computer and test Windows Update. If SFC fails to find integrity violations or cannot repair them, you must move to the DISM step.

Step 3: Repair the Component Store with DISM

When SFC fails, the Deployment Image Servicing and Management (DISM) tool is the primary method for repairing the Windows image. The standard DISM command attempts to use Windows Update as the source for repair files. If Windows Update is currently broken (causing the 0x80004005 error), this default method will fail. Therefore, you need to specify a local source if possible, or ensure the network path is accessible. First, try the standard health scan and restore commands:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
If the /RestoreHealth command fails with an error indicating it cannot connect to Windows Update, you must provide a local source. You can use a Windows 10 ISO file mounted as a virtual drive or a working installation media. Assuming you have mounted a Windows 10 ISO to drive D: (replace with your actual drive letter), use the following command:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
The /LimitAccess flag prevents DISM from trying to contact Windows Update, forcing it to use only the local source. This bypasses the network-related causes of the 0x80004005 error. After DISM completes successfully, run sfc /scannow again to ensure any files repaired by DISM are also validated by SFC.

Step 4: Reset Windows Update Components

If the above steps do not resolve the issue, you may need to reset the entire Windows Update infrastructure. This involves resetting the BITS (Background Intelligent Transfer Service) settings and ensuring that no other processes are locking the update files. For deeper issues involving system instability, such as those seen in Windows 10 BSOD Randomly, a full component reset is often necessary alongside driver verification. To reset the components manually:
  1. Reset BITS: In the elevated Command Prompt, type:
    bitsadmin.exe /reset /allusers
  2. Re-register DLLs: Sometimes the COM objects used by Windows Update become unregistered. Run this script to re-register key DLLs:
    regsvr32.exe atl.dll
    regsvr32.exe urlmon.dll
    regsvr32.exe mshtml.dll
    regsvr32.exe shdocvw.dll
    regsvr32.exe browseui.dll
    regsvr32.exe jscript.dll
    regsvr32.exe vbscript.dll
    regsvr32.exe scrrun.dll
    regsvr32.exe msxml.dll
    regsvr32.exe msxml3.dll
    regsvr32.exe msxml6.dll
    regsvr32.exe actxprxy.dll
    regsvr32.exe softpub.dll
    regsvr32.exe wintrust.dll
    regsvr32.exe dssenh.dll
    regsvr32.exe rsaenh.dll
    regsvr32.exe gpkcsp.dll
    regsvr32.exe sccbase.dll
    regsvr32.exe slbcsp.dll
    regsvr32.exe cryptweb.dll
    regsvr32.exe oleaut32.dll
    regsvr32.exe ole32.dll
    regsvr32.exe shell32.dll
    regsvr32.exe initpki.dll
    regsvr32.exe wuapi.dll
    regsvr32.exe wups.dll
    regsvr32.exe wups2.dll
    regsvr32.exe wucltui.dll
    regsvr32.exe wuweb.dll
    regsvr32.exe qmgr.dll
    regsvr32.exe qmgrprxy.dll
    regsvr32.exe wucltux.dll
    regsvr32.exe muweb.dll
    regsvr32.exe wuwebv.dll
After re-registering these libraries, restart your computer and try installing the updates again.

Alternative: Use the Media Creation Tool

If manual command-line repairs fail, the most reliable method to fix persistent update errors is to perform an in-place upgrade using the Windows 10 Media Creation Tool. This process reinstalls Windows while keeping your personal files, apps, and settings intact. It effectively rebuilds the entire operating system structure, including the Component Store and Update agents. Download the Media Creation Tool from Microsoft's official website. Run the tool and select "Upgrade this PC now." Follow the on-screen instructions. This method is particularly useful if you suspect deep-seated corruption that command-line tools cannot address. For users experiencing hardware-specific conflicts, such as Touchpad Issue on ThinkPad X201 Notebook with Windows 10, a clean install via this method can also resolve peripheral driver conflicts that indirectly affect system stability.

Frequently Asked Questions

Why does DISM fail even after running SFC?

SFC checks individual files against a known good version but relies on the Component Store for replacements. If the Component Store itself is corrupted, SFC has no source to pull from. DISM repairs the Component Store directly, which is why it must be run when SFC fails.

Can I ignore Error 0x80004005 if my PC works fine?

No, ignoring this error leaves your system vulnerable to security threats and missing critical feature updates. Even if the OS appears stable, unpatched vulnerabilities can be exploited by malware, and accumulated corruption may lead to future crashes.

What should I do if DISM fails with error 0x800f081f?

Error 0x800f081f indicates that the source files could not be found. Ensure you are pointing DISM to the correct drive letter of your mounted Windows ISO. Also, verify that the install.wim file exists in the \sources folder of the media.

Does clearing the SoftwareDistribution folder delete my personal data?

No, renaming or clearing the SoftwareDistribution folder only removes temporary update download files and logs. Your personal documents, applications, and user profiles remain completely untouched during this process.

How long does DISM RestoreHealth take?

The duration varies significantly based on system speed and the extent of corruption. It can take anywhere from 10 minutes to several hours. It is normal for the progress bar to appear stuck at certain percentages; allow the process to complete without interruption.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More