sodcalculator

10 Tech How-To

Fix Microsoft Error 0x8004005 & 0x80004005

Guide 10-59519 · Updated · Step by step

These two Microsoft error codes, 0x8004005 and 0x80004005, often appear during Windows updates, software installations, or when accessing certain files and folders. They generally point to permission problems, corrupted system files, or issues with the Windows Update components. This guide provides a step-by-step approach to resolve both errors, starting with the most common fixes and moving to more advanced solutions.

What You’ll Need

  • A Windows administrator account (you’ll need to approve User Account Control prompts).
  • Stable internet connection for downloading updates and running online scans.
  • Patience – some steps, like the System File Checker, can take 15-20 minutes.

Step-by-Step

  1. Run the Windows Update Troubleshooter. Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters (or System > Troubleshoot on Windows 11). Select Windows Update and run it. This tool automatically detects and fixes common update issues, including corrupted cache and misconfigured services.
  2. Check file and folder permissions. If the error occurs when opening a specific file or folder, right-click it, select Properties, go to the Security tab, and click Advanced. Ensure your user account has Full control. If not, click Change next to the owner, enter your username, and check Replace owner on subcontainers and objects. Then grant yourself full control and try again.
  3. Run the System File Checker (SFC). Open Command Prompt as administrator (search for “cmd”, right-click, and select Run as administrator). Type sfc /scannow and press Enter. This scans for and repairs corrupted system files. Wait for the process to complete (it may take a while) and restart your PC.
  4. Run DISM to repair the system image. If SFC finds issues it can’t fix, run DISM. In the same administrator Command Prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This will download healthy system files from Windows Update. Restart after completion.
  5. Reset Windows Update components manually. If the error persists, stop the Windows Update services. In an administrator Command Prompt, run these commands one by one, pressing Enter after each:

    net stop wuauserv

    net stop cryptSvc

    net stop bits

    net stop msiserver

    Then rename the SoftwareDistribution and CatRoot2 folders:

    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

    ren C:\Windows\System32\catroot2 Catroot2.old

    Restart the services:

    net start wuauserv

    net start cryptSvc

    net start bits

    net start msiserver

    Then try Windows Update again.
  6. Perform a clean boot. Third-party software can interfere. Press Win + R, type msconfig, and go to the Services tab. Check Hide all Microsoft services, then click Disable all. Go to the Startup tab and click Open Task Manager. Disable all startup items. Restart and try the update or install again. If it works, re-enable items one by one to find the culprit.
  7. Use the Media Creation Tool for a repair upgrade. As a last resort, download the Windows Media Creation Tool from Microsoft’s official website. Run it and choose Upgrade this PC now. This reinstalls Windows while keeping your files and apps, fixing deep system corruption.

Common Mistakes

  • Skipping the restart after running SFC or DISM – the fixes often need a reboot to take effect.
  • Running commands without administrator privileges – you must open Command Prompt as administrator, or the commands will fail.
  • Deleting the SoftwareDistribution folder instead of renaming it – renaming is safer and allows you to revert if needed.
  • Ignoring third-party antivirus – sometimes security software blocks system changes. Temporarily disable it (if you know how) and test.
  • Assuming it’s a hardware problem – these errors are almost always software-related, so focus on system files and permissions.

Tips

  • Always create a system restore point before making major changes (search for “Create a restore point” in the Start menu).
  • Keep your drivers updated, especially chipset and storage drivers, as outdated drivers can trigger these errors.
  • If the error occurs with a specific program, try reinstalling that program with administrator rights (right-click the installer and select Run as administrator).
  • Check the Windows Event Viewer (eventvwr.msc) for more details about the error – look under Windows Logs > System and Application for entries with the same timestamp.

Troubleshooting

If the steps above don’t resolve the issue, try these additional checks:

  • Check disk errors: Run chkdsk /f in an administrator Command Prompt and restart your PC. This scans for and fixes file system errors that might cause access issues.
  • Verify your system time and date: Incorrect time can break certificate validation and cause error 0x80004005. Right-click the clock, select Adjust date/time, and enable Set time automatically.
  • Try a different user account: Create a new local administrator account and see if the error occurs there. If not, your original profile is corrupted – you can migrate your files.
  • Use the Windows Update Assistant: If Windows Update fails, download the official Windows Update Assistant from Microsoft and run it to force the latest feature update.
  • Check for malware: Run a full system scan with Windows Defender or a trusted third-party tool. Malware can modify permissions and system files.

Frequently Asked Questions

  1. What exactly do error 0x8004005 and 0x80004005 mean?
    Both are generic COM/OLE errors that indicate a failure in a system operation, often due to permissions, corrupted files, or a broken update process. They are not specific to one cause, so you need to troubleshoot systematically.
  2. Will these errors damage my computer?
    No, they are not hardware failures. They prevent certain operations (like updates or file access) from completing, but they don’t cause data loss or physical damage.
  3. Can I ignore these errors if they appear only once?
    If they happen once and don’t recur, you can ignore them. But if they appear frequently, especially during updates, you should fix them to keep your system secure.
  4. Do I need to reinstall Windows to fix this?
    Usually not. The steps above resolve most cases. A repair upgrade (step 7) is a less drastic option than a full reinstall and preserves your files.
  5. Why does the error occur when I try to open a specific folder?
    That’s a classic permission issue. The folder’s ACL (access control list) may not include your user account. Use the Security tab in Properties to grant yourself full control.
  6. Is it safe to rename the SoftwareDistribution folder?
    Yes, it’s safe. Windows will recreate it automatically. Renaming (not deleting) ensures you can revert if something goes wrong.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →