0x80004005

Fix Windows Error 0x80004005: Quick Steps That Work

Windows error 0x80004005 means 'unspecified error.' It pops up when updating, installing drivers, or accessing files. Here's how to kill it.

Quick Answer for Advanced Users

Open Command Prompt as admin and run: sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth. Reboot. If that doesn't work, check your antivirus or registry permissions for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.

What Is Error 0x80004005?

Error 0x80004005 is Windows' way of saying "something went wrong, but I can't tell you exactly what." It's the "unspecified error" code. It shows up when you try to install Windows updates, update drivers, or open certain files. I've seen it most often on Windows 10 version 22H2 and Windows 11 version 23H2 after a failed update or when a driver installation gets interrupted. Don't panic—most of the time it's fixable in a few minutes.

The root cause is usually corrupted system files, messed up registry permissions, or a security program that blocks something. You might also get it when trying to open a file that's encrypted or protected by a security tool. Let me walk you through the fixes that work 9 times out of 10.

Step-by-Step Fixes

  1. Run System File Checker and DISM
    This is the first thing to try. Corrupted system files cause 0x80004005 a lot.
    • Press the Windows key, type cmd, right-click Command Prompt, and select "Run as administrator." Click Yes if you get a UAC prompt.
    • Type sfc /scannow and press Enter. Wait—this can take 15 to 20 minutes. You'll see a progress bar. When it finishes, it tells you if it found and fixed any files.
    • After that, run DISM /Online /Cleanup-Image /RestoreHealth. This checks the Windows image itself. It also takes time—don't interrupt it. You'll see a message like "The restore operation completed successfully."
    • Restart your PC. After the restart, try the action that gave you the error. If it's gone, you're done. If not, move to step 2.
  2. Check Your Antivirus or Security Software
    Third-party antivirus programs (like Norton, McAfee, or even some free ones) often block file operations. This triggers 0x80004005.
    • Temporarily disable your antivirus. Right-click its icon in the system tray (near the clock) and look for "Disable" or "Pause protection." Set it to disable for 10 minutes or until restart.
    • Try the action again. If it works, you know the antivirus was the problem. Add an exception for the file or folder you were accessing, or switch to Windows Defender—it's good enough for most people.
    • If disabling doesn't help, re-enable it and move on.
  3. Fix Registry Permissions
    Sometimes the registry key for system policies gets broken permissions. This is common after a Windows update fails.
    • Press Windows key + R, type regedit, and press Enter. Click Yes on the UAC prompt.
    • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. If the System key doesn't exist, right-click Policies and create a new Key named System.
    • Right-click the System key, choose "Permissions." In the window that opens, click "Advanced."
    • At the top, next to "Owner," click "Change." Type Administrators in the box, click "Check Names" (it should underline it), then OK.
    • Check the box "Replace owner on subcontainers and objects." Click Apply, then OK.
    • Go back to the main Permissions window. Select Administrators in the group list and check "Full Control" under Allow. Also select SYSTEM and check "Full Control."
    • Click OK, close Registry Editor, and restart your PC. Try the update or file access again.
  4. Run Windows Update Troubleshooter
    This is built into Windows and can fix update-related 0x80004005 errors.
    • Open Settings (Windows key + I). Go to System > Troubleshoot > Other troubleshooters.
    • Find "Windows Update" in the list and click "Run." Wait for it to finish. It will say something like "Troubleshooting completed. Found issues: Windows Update components need repair." Click "Apply this fix."
    • Restart and check for updates again.
  5. Perform a System Restore
    If nothing else worked and the error started recently, roll back to a point before the problem.
    • Press Windows key + R, type rstrui, and press Enter.
    • Click "Next." Choose a restore point from before the error appeared (look at the date). Click "Next" then "Finish." Your PC will restart. This can take 10-15 minutes.
    • After restoring, the error should be gone. If it's not, you can undo the restore from Safe Mode if needed.

Alternative Fixes If the Main Steps Fail

Sometimes the main steps don't cut it. Here are less common but effective options:

  • Check disk for errors: Open Command Prompt as admin and run chkdsk C: /f. It will schedule a check on next restart. Reboot and let it run. This fixes file system corruption that causes 0x80004005.
  • Clean boot Windows: Press Windows key + R, type msconfig. Go to Services tab, check "Hide all Microsoft services," click "Disable all." Then go to Startup tab, click "Open Task Manager," disable all startup items. Restart. Try your action. If it works, enable services one by one until you find the culprit.
  • Reset Windows Update components: Run this in an admin Command Prompt: net stop wuauserv, then net stop cryptSvc, then net stop bits, then net stop msiserver. After that, rename the SoftwareDistribution folder: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old. Then start services again: net start wuauserv, net start cryptSvc, net start bits, net start msiserver. Restart and try updating.

How to Prevent This Error

You can't stop every 0x80004005 error, but you can cut the chances way down. Here's what I tell my users:

  • Keep Windows updated. Sounds obvious, but people skip it. Updates fix bugs that cause this error.
  • Don't run multiple antivirus programs at once. Windows Defender plus one other is fine—three is asking for trouble.
  • Back up your system regularly. Use File History or a third-party tool. If the error breaks something important, you can restore.
  • Run sfc /scannow once a month. I do it on the first of every month. Takes 20 minutes, saves hours of headaches later.

That's it. Try the fixes in order, and you'll beat 0x80004005. If you're still stuck after all this, you might have a deeper hardware issue or a virus. In that case, run a full scan with Windows Defender Offline scan (it's in Windows Security > Virus & threat protection > Scan options). Good luck.

Related Errors in Windows Errors
0XC0190030 STATUS_LOG_CORRUPTION_DETECTED 0XC0190030 Fix 0XC00002E7 Domain join fails: 0XC00002E7 – machine account quota hit 0XC0262008 Fix ERROR_GRAPHICS_CANNOTCOLORCONVERT (0XC0262008) 0XC0000076 Fix STATUS_INVALID_SUB_AUTHORITY (0xC0000076) in Windows

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.