ERROR

How to Fix Windows Error 0x80004005 (Unspecified Error)

Quick Fix Summary

TL;DR

Run the System File Checker (SFC) and DISM tools to repair corrupted system files.

Error 0x80004005 is a generic COM+ or Windows Update failure indicating a permissions, registry, or system file corruption issue. It often blocks critical operations like software installation, updates, or system restore.

Diagnosis & Causes

  • Corrupted Windows system files.
  • Incorrect registry permissions for COM+.
  • Windows Update component corruption.
  • Third-party antivirus or firewall blocking.
  • Corrupted user profile or system cache.
  • Recovery Steps

    1

    Step 1: Run System File Checker (SFC)

    Scans and repairs corrupted or missing protected system files.

    bash
    sfc /scannow
    2

    Step 2: Run DISM Tool

    Repairs the Windows image that SFC uses. Run this if SFC fails.

    bash
    DISM.exe /Online /Cleanup-image /Restorehealth
    3

    Step 3: Reset Windows Update Components

    Stops services, renames cache folders, and restarts the Windows Update stack.

    bash
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 Catroot2.old
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    4

    Step 4: Re-register Windows DLLs

    Re-registers common DLLs associated with COM+ and system operations.

    bash
    for %i in (mshtml.dll, urlmon.dll, msjava.dll, shdocvw.dll, browseui.dll, jscript.dll, vbscript.dll, scrrun.dll, msxml.dll, msxml3.dll, msxml6.dll, actxprxy.dll, softpub.dll, wintrust.dll, dssenh.dll, rsaenh.dll, gpkcsp.dll, sccbase.dll, slbcsp.dll, cryptdlg.dll) do regsvr32 /s %i
    5

    Step 5: Check and Repair Registry Permissions (Advanced)

    Resets permissions for the COM+ Catalog registry key, a common root cause.

    bash
    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    icacls "HKEY_CLASSES_ROOT\CLSID" /grant "SYSTEM":(F) /T /C
    icacls "HKEY_CLASSES_ROOT\CLSID" /grant "Administrators":(F) /T /C
    6

    Step 6: Perform a Clean Boot

    Boot with minimal drivers and startup programs to isolate software conflicts.

    bash
    msconfig

    Architect's Pro Tip

    "If the error occurs during a specific app install, run the installer as Administrator with the `/log` switch and check the verbose log for the exact failing COM call."

    Frequently Asked Questions

    Is error 0x80004005 a virus?

    No, it's a system error. However, malware can corrupt files causing it. Run a full antivirus scan after applying the fixes.

    Which solution fixes it the most often?

    The combination of SFC, DISM, and resetting Windows Update components (Steps 1-3) resolves over 80% of occurrences.

    Do I need to restart after each step?

    Yes. A restart is required after Steps 1, 2, 3, and 5 for changes to take full effect. Always restart before moving to the next step if the error persists.

    Related Windows Guides