Error 0x80070005: Access Denied, Explained and Fixed
“Access Denied”
In plain English: Error 0x80070005 means Access Denied. Windows was refused permission to use a file, folder or service it needed, so the update or install stopped before it could finish.
First safe step: Before you change any settings, write down what you saw. Copy the full message, where it appeared, and the program name for an install.
Error 0x80070005 means Access Denied. Windows was refused permission to use a file, folder or service it needed, so the update or install stopped before it could finish. The code points to a permission problem, not to deleted files, and on its own it does not mean you have a virus.
This guide covers that one code in both places it stops people most often, a Windows Update that will not install and a program that will not install. The steps work for Windows 10 and Windows 11, with the different screen names given where they differ.
If the error appeared while you were getting an app from the Microsoft Store, that version has its own linked guide and its own fix. For an update or a regular program install, start with the quick checks below before you change any settings.
Part of the Windows Error Codes in Plain English: Look Up Any Code series, the pillar guide for this cluster.
What Error 0x80070005 Means in Plain English
Microsoft lists 0x80070005 as ACCESS_DENIED, also written E_ACCESSDENIED. In plain English, Windows or an installer asked to open, change, or use a file, folder, or service, and it was not allowed to. Think of it as a locked door, not proof that something behind the door is gone.
That refusal does not, by itself, mean files are missing or damaged, and the code alone does not mean your computer has a virus. The file or service may still be there, in its normal place. The account or program trying to use it simply did not have permission to do so.
You will most often see this code in two places, on both Windows 10 and Windows 11. It can stop a Windows Update from installing, or stop a program or app during setup. It also shows up at times during Windows activation or System Restore, when those tasks need access to a protected file or setting.
Nearby codes mean different things: 0x80070002 means a needed file could not be found, 0x80004005 is an unspecified error with no specific reason given, and 0x80073712 points to damage in the Windows component store. Unlike those codes, 0x80070005 points to one clear problem, permission being refused.
Start Here: Note Where It Appeared and Do the Safe Quick Checks
Before you change any settings, write down what you saw. Copy the full message, where it appeared, and the program name for an install. For an update, copy any KB number shown, and note the date and time. On Windows 11, that screen is Settings, then Windows Update. On Windows 10, it is Settings, then Update and Security, then Windows Update.
Next, restart the computer once. Save any open work first, use Restart from the Start menu, sign back in with your usual account, and wait until the desktop has loaded fully. If the PC asks to finish an earlier update during the restart, let it finish. A restart can free a file or service that was busy during the first try, without changing any settings.
Then check the account you are using. Open Settings, then Accounts. Under your name, the account should say Administrator. A Standard account can use the computer, but it may not be able to approve an update or an install. If it says Standard, stop and ask the person who manages the computer to sign in.
Now try the update or install once more, in the same place where it failed. Use your notes so you retry the same KB update or the same program. If it works, you are done. If 0x80070005 comes back, do not keep retrying. Update readers should continue to the next section. Install readers should skip to the section after that.
If 0x80070005 Stopped a Windows Update
If 0x80070005 stopped a Windows Update
Start with the built-in Windows Update troubleshooter. On Windows 11, open Settings > System > Troubleshoot > Other troubleshooters, find Windows Update, and select Run. On Windows 10, open Settings > Update & Security > Troubleshoot > Additional troubleshooters, then select Windows Update and Run the troubleshooter. Let it finish, then return to Windows Update in Settings and retry the update you noted earlier, once. Stop after that one try.
Next, check that the update services have not been switched off. Open Services from the Start search and look at Windows Update, Background Intelligent Transfer Service (BITS), and Cryptographic Services. None should show Disabled under Startup type. Manual or Automatic is normal, even if a service is not running now. If one shows Disabled, use the linked guide for error 0x80070422, which covers that repair. Leave other services alone.
Third-party security software can block an update by refusing access to its files. Check the program's history or blocked items log for Windows Update entries from the time the update failed. Or pause its real-time protection briefly, retry the update once, and turn protection straight back on. If the update succeeds while paused, that program was the blocker. If the same error returns, it was not. Write down the result.
A locked update folder can cause the same refusal. The clues are a troubleshooter report that names a folder it could not open, or an update that fails instantly at the same point every time. Write down the exact folder path and keep it for the folder check later in this guide. Do not delete or rename the folder. That later check looks at the named folder only.
If 0x80070005 Stopped an Install
If the error appeared while you were installing a desktop program, give the installer full permission for one try. Find the setup file, usually in your Downloads folder. Right-click it, select Run as administrator, and then select Yes when Windows asks if you want to allow the app to make changes.
A normal double-click can run the same file with limited permission. That is often enough for opening a program, but an install may need to write to a shared folder or start a service, and Windows stops it with 0x80070005.
If it still fails, close the program completely if an older copy is still running. Check for its icon near the clock as well as on the main screen, and close it there too. Then download a fresh copy of the setup file from the program maker's own website and run that copy as administrator instead. A partly downloaded or damaged setup file can fail in the same way.
Leave the install destination as the normal folder the installer suggests. A folder inside another person's account, a Windows system folder, or a removable drive can refuse the write even when you ran the file as administrator. If you changed the destination earlier, go back, restore the suggested folder, and try the install once more.
If the app came from the Microsoft Store, stop here. Store installs do not use a setup file you can right-click, so use the linked Microsoft Store guide for 0x80070005 instead. If a desktop install still fails after the steps above, do not keep retrying it. The next section checks your security software and the one folder named in the message.
Check Security Software and the Folder Named in the Message
If you use third-party antivirus software, open it and pause its real-time protection for the shortest time it allows. Retry the update or install once, and turn protection back on right away, whether the retry works or fails. Do not browse the web, open files, or download anything while protection is paused. A single retry is enough to tell you if it was in the way.
If the error message names a file or folder, check that one item only. Right-click it, select Properties, then select the Security tab. Find the name of the account you are signed in with, and look at the permissions below it. Your account should be listed under Allow, not under Deny. Do not delete or rename the item while you are checking it.
If the retry works while protection is paused, the security program was likely blocking access, so check its blocked items or ask its maker for help updating it. If no file or folder is named, skip this check. Do not guess, and do not change permissions for the whole drive, the Windows folder, or Program Files.
Skip scripts and downloads that promise to fix this code by resetting registry permissions, including old SubInACL style tools, optimizers, cleaners, and paid fix-it programs. They can change thousands of permissions at once, weaken security, and be hard to undo. If neither check explains the error, keep the exact message and go to the account test in the next section.
If It Still Fails: Test With a New Account and Keep Your Evidence
If 0x80070005 is still there, try the same update or install once from a new local administrator account. In Settings > Accounts, open Other users on Windows 11, or Family & other users on Windows 10. Add a local account, change it to Administrator, sign in to it, and try once.
If it works in the new account, your original account or its profile has the permission problem. You can use the new account for that update or install, and get help before you move your files and settings to it. If it fails in the new account too, the problem is wider than one account.
Before you ask for more help, write down the code 0x80070005, the date it appeared, and the KB number or program name. Add any file or folder named in the message. Note which steps from this guide you tried, and what happened each time, so you do not have to repeat them from memory.
System Restore and a repair install are last resorts. Use the linked guides for those, rather than starting them here. If a pop-up gives you a phone number and says it is Microsoft support, close the pop-up. Real Microsoft support never arrives that way. Do not call the number, and do not pay.
Conclusion
Error 0x80070005 stops work at the point where Windows asks for permission and does not get it. That makes it frustrating, but it also makes it narrow. It is not on its own a sign that your files are gone, and the fix is usually a matter of finding what refused access.
If the error is still there after you have worked through the steps, stop repeating the same retry. Use the record you kept to ask for help in the right place, from the program maker or Microsoft, and ignore any pop-up that tells you to call a number and pay.