Error Code 0x80070005: What It Is and How to Fix It

If you can't install new software, this error may be the problem.

A frustrated man with his laptop

jhorrocks/Getty Images


If you see an error code 0x80070005 in Windows, it's usually when you're attempting to install a new update or a new program. Unfortunately, it's rarely presented in proper context or with any real explanation. Here's what it is, precisely, and how to address it.

What Is Error 0x80070005?

Error 0x80070005 means you or a program you're running tried to open a file or a registry you don't have permission to access. It also sometimes comes with language like “Access Denied.” This most commonly comes up when you're trying to install software, such as a Windows Update.

How Do I Fix Error 0x80070005?

  1. Log out of your account and log into an administrator account, which has more permissions to access data and registries, and run the update again. Often this will solve the issue. If it doesn't, it's likely a problem with the file itself or with the file medium, such as a USB stick or data disc.

  2. Check the software for any other available updates; some updates may need to be run in a certain order. If there are no other updates, uninstall the program and then reinstall it.

  3. Turn off your computer and unplug any other USB drives and accessories connected to it. Reboot it with just the necessary devices connected.

  4. Open Device Manager and check your connected devices for any driver updates. If any are marked with an exclamation point, update those drivers and reattempt installation of the software.

  5. Ensure the software you're running is from a legitimate source and isn't attempting to steal data from your computer. Only download software from trusted companies, and scan all software and files you download from the internet with antivirus software such as Windows Defender.

    Antivirus software can only check for viruses and malware the developer has already discovered and analyzed. If a virus is new or unresearched, it will not trigger your antivirus software.

  6. The download may be blocked by Windows Firewall. To disable Windows Firewall, open Settings > Update and Security > Windows Security > Firewall and Network Protection > Allow An App Through Firewall. Do this only with apps you trust and have verified are legitimate.

  7. Scan your USB stick or hard drive. If you're uploading software from a USB stick, hard drive, or other device, open Settings > Update and Security > Windows Security > Virus & Threat Protection > Run A New Advanced Scan. Choose Custom Scan, select Scan Now, then select your USB drive in File Explorer, which will be in the left-hand window, and run the scan.

    If the scan finds malware, remove the drive immediately and run a full scan of your computer from the same menu. If the drive scans clearly, move on to check the software itself.

  8. Adjust file attributes. Open File Explorer, find and right-click your software, then select Properties > General. Select Read-only if it's checked to uncheck it, then select Unblock to enable it.

  9. Change file security. Open File Explorer, find and right-click your software, then select Properties > Security. Check the security permissions at the bottom and ensure they're all checked as "Allow." If some are marked as "Deny" or blank, select Edit, then set the various permissions. Select Apply and try to open the file or run the program again.

    You must be logged into your administrator account to revise these, or give your account administrator status.

  10. If the file still won't load, and it's a file you're attempting to install via Windows Update, you may need to try a bit of computer coding. First, ensure you're still logged into an administrator account and download and install SubInACL.

Use SubInACL only for files that you absolutely trust, such as those made available via Windows Update. If you are not comfortable with minor computer code, do not attempt.

Open Notepad and enter the following code:

Set OSBIT=32
IF exist "%ProgramFiles(x86)%" set OSBIT=64
set RUNNINGDIR=%ProgramFiles%
IF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)%
subinacl /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" /grant="nt service\trustedinstaller"=f

Select Save As, set the "Save As Type" to All Files, and save it with the ending ".cmd." Be sure to save it somewhere you can easily find it, then open it as an Administrator. Once the files have updated, delete the script.