
Error 0x80070005 means “access denied.” Microsoft’s name for it is E_ACCESSDENIED: something asked Windows to read or change a file, folder or registry key, and Windows refused. The code is the same in Windows Update, the Microsoft Store, System Restore and app installers, but the thing being refused is different in each.
So start with where you saw it. On a home PC the usual causes are a standard user account, antivirus holding a file, or damaged permissions on a system folder. On a work PC there’s a fourth: the PC is managed, and you aren’t meant to have the rights the task needs. That last one isn’t a fault to work around; it’s a request for whoever runs your IT.
Try these first
- Restart the PC, then try the same task once more.
- Check you’re signed in as an administrator (Settings > Accounts > Your info).
- Right-click the installer or app and select Run as administrator.
- Pause third-party antivirus for one attempt, then turn it straight back on.
- Check Windows Security > Virus & threat protection > Manage ransomware protection for a blocked app.
- For Windows Update, run the commands in the Windows Update section below.
Rather not fix it yourself?
A GoProIT technician can connect remotely, with your permission, and fix it while you watch. $59 flat per fix · Mon–Fri 8am–8pm ET.
Where you see 0x80070005 tells you what’s being denied
| Where it appears | What’s usually being denied | Start with |
|---|---|---|
| Windows Update, installing a monthly or feature update | The servicing system can’t write to WinSxS, SoftwareDistribution or a registry key, often because permissions changed or security software locked them | The Microsoft procedure below |
| Windows Update, downloading, on a work PC | The signed-in user isn’t allowed to install updates (Microsoft lists this separately as 0x80246017) | Ask your administrator, or sign in as a local administrator |
| Microsoft Store, installing or updating an app | The Store app’s own data or cache, or a Store policy on a managed PC | Repair, then Reset the Store app |
| System Restore: “An unspecified error occurred during System Restore. (0x80070005)” | A file System Restore needs is locked, usually by antivirus | Run System Restore from Windows Recovery |
| Installing desktop software | The installer needs admin rights to write to Program Files or the registry | Run as administrator, or have IT deploy it |
| An app saving into Documents, Desktop or Pictures | Controlled folder access is blocking the app | Allow the app, if you trust it |
| Windows version upgrade: 0x80070005 – 0x4000D | Access denied while moving your data into the new version | Setup logs; see the upgrade section |
If your code ends in a different number, such as 0x80004005 (“unspecified error”), it’s a different problem; our 0x80004005 guide covers that one.
Admin rights: the most common cause on office PCs
Many tasks that throw 0x80070005 simply need an administrator. Microsoft’s Windows Update help page describes this code as access denied or insufficient permissions, so check the account before touching any system folder.
To check your account type, open Settings > Accounts > Your info. Under your name it says Administrator or Standard user. If you’re a standard user on your own PC, someone with an admin account can sign in and install the update or app, or change your account type.
On a company-managed PC
If your PC is joined to your organization (a work account under Settings > Accounts > Access work or school), standard-user accounts are usually deliberate. Giving everyone admin rights fixes this error and opens the door to malware that would otherwise be blocked. Better options for the person who manages the PCs:
- Publish approved apps in Intune so staff install them from Company Portal without admin rights.
- Let Windows Update install updates on its own schedule through an update ring, instead of asking users to click.
- Use a separate admin account for the rare manual task, not the account used for email and browsing.
Our help desk handles those requests for teams that don’t have their own IT person.
0x80070005 in Windows Update: Microsoft’s fix order
Microsoft documents that this error happens when the update process can’t reach files, folders or registry entries it needs. Its listed causes are the TrustedInstaller account losing permissions on %windir%\WinSxS or %windir%\SoftwareDistribution, wrong permissions on the Component Based Servicing registry key, third-party security software locking files, the SYSTEM account lacking Full Control of the Windows folder, or a policy or management agent restricting writes.
Before you start: Microsoft says to back up the operating system disk first. These commands change permissions on system folders; typed wrongly, or run against the wrong folder, they can cause new problems. If the drive is encrypted with BitLocker, make sure you know where the recovery key is.
Right-click Start, select Terminal (Admin), and after each step restart and try the update again:
- Reset component store permissions. Run
icacls "%windir%\WinSxS" /reset /t /c /qand thenicacls "%windir%\SoftwareDistribution" /reset /t /c /q. These commands use cmd syntax; if Terminal opened PowerShell, typecmdfirst. - Give WinSxS back to TrustedInstaller. Run
icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q. - Reset Windows Update components. Stop the update services, rename SoftwareDistribution and catroot2, and start the services again. The full command list is in our Windows Update stuck guide.
- Repair the component store with
DISM /Online /Cleanup-Image /RestoreHealth. - Check system files with
sfc /scannow. - Rule out third-party drivers. Temporarily turn off real-time antivirus, then run
fltmcto list file-system filter drivers. Non-Microsoft entries in that list are usually security, backup or sync tools. Microsoft’s procedure unloads them one at a time withfltmc unloadand the driver name; on an office PC, prefer pausing or uninstalling the product through its own console so you know how to turn it back on.
To see exactly what was denied, open %windir%\Logs\CBS\CBS.log, search for 0x80070005 or , error, and read the lines just above the match; the file or key named there is the one with the wrong permissions.
Microsoft Store, System Restore and app installs
Microsoft Store
- Sign out of the Store and back in, and check the PC’s date and time are set automatically.
- Go to Start > Settings > Apps > Installed apps, select the More (three dots) icon next to Microsoft Store, and choose Advanced options. Select Repair first. If that doesn’t help, select Reset, which clears the app’s data, so you’ll sign in again.
- Press Win + R, type
wsreset.exeand press Enter to clear the Store cache. A blank window opens for a moment, then the Store reopens.
On work PCs, an administrator can block the Store or allow only approved apps. If it fails only on managed PCs, ask before trying further fixes.
System Restore
Windows’ own wording for this failure says System Restore could not access a file, probably because an antivirus program is running. Turn off third-party antivirus temporarily and try again. If it still fails, run System Restore from Windows Recovery, where most third-party software doesn’t load: Settings > System > Recovery > Advanced startup > Restart now, then Troubleshoot > Advanced options > System Restore. Have your BitLocker recovery key handy, since recovery may ask for it.
Desktop app installs and saving files
Right-click the installer and select Run as administrator. If an app installs fine but can’t save into Documents or Desktop, check Controlled folder access: Windows Security > Virus & threat protection > Manage ransomware protection. If you trust the app, use Allow an app through Controlled folder access. Microsoft warns that any allowed app can change files in protected folders, so only add apps you know.
Rather have a technician sort it out?
A technician can connect with your permission, find which file, folder or policy is denying access, and fix the permissions without loosening your PC’s security. A GoProIT technician can connect remotely, with your permission, and fix it while you watch. $59 per fix, Mon–Fri 8am–8pm ET.
0x80070005 during a Windows 11 version upgrade
When a version upgrade fails, Windows Setup reports two codes. Microsoft documents 0x80070005 – 0x4000D as a failure in the second boot phase during data migration: access was denied while moving something into the new installation. The first part is the error, the second says which phase failed.
- Run Microsoft’s SetupDiag tool, which reads the setup logs and names the file or profile that was refused.
- Check user profiles. Microsoft’s guidance for related data-migration errors points at accounts that were deleted but left profiles behind, and at damaged files under
C:\Users. Back up a profile’s data before removing it. - Pause or uninstall third-party security and encryption software for the upgrade, then reinstall it.
If your upgrade rolled back with 0xC1900101 instead, that’s a driver problem; see our 0xC1900101 guide.
What not to do
- Don’t take ownership of all of C:\Windows or grant Everyone Full Control. Old guides suggest it; it breaks Windows’ own protection of system files and can stop future updates installing.
- Don’t download permission “repair” tools from third-party sites. Microsoft’s
icaclscommands above do the documented job. - Don’t leave antivirus off. Pause it for one attempt, then turn it back on and ask the vendor about exclusions if it was the cause.
- Don’t make every user an admin to stop the error on company PCs.
When it’s something deeper, and when to get help
- The error spreads to many unrelated tasks, or appeared right after a cleanup or “optimizer” tool ran. Permissions may have been changed broadly, and fixing them folder by folder is slow.
- Files you own suddenly say access denied and get renamed with odd extensions. Disconnect the PC from the network and treat it as possible ransomware; see how to tell if your business has been hacked.
- DISM or SFC can’t repair what they find, or the disk reports errors.
- It only happens on managed PCs and you don’t know who set the policies.
For a single PC, tracking down which permission or policy is causing the denial is a typical $59 remote fix.
Common questions
What does error code 0x80070005 mean?
It means access denied. The 8007 part says it comes from a standard Windows error, and 0005 is the Windows code for ERROR_ACCESS_DENIED. Windows refused to let a program read or change a file, folder or registry key. The fix depends on which program hit it: Windows Update, the Store, System Restore or an installer each need a different approach.
Can antivirus cause error 0x80070005?
Yes, and it’s one of the most common causes. Microsoft lists third-party security tools that lock update files among the documented causes, and Windows’ own System Restore message points at antivirus. Pause real-time protection for one attempt. If that fixes it, turn protection back on and ask the antivirus vendor how to exclude the task properly.
Is it safe to run the icacls reset commands Microsoft lists?
They’re Microsoft’s documented fix for Windows Update access denied errors, and they only reset WinSxS and SoftwareDistribution to their default permissions. Microsoft still says to back up the system disk first, because any permission change on system folders carries some risk. Copy the commands exactly, and don’t point icacls at other folders or the whole C: drive.
Why do I get 0x80070005 even though I’m an administrator?
Being an administrator doesn’t mean every action runs with full rights. Apps still run with limited rights until you approve elevation, so try Run as administrator. Windows Update and the Store run as system services, so admin status doesn’t help when the problem is broken permissions, an antivirus lock or a management policy. Those need the fixes in the matching section above.
Does 0x80070005 mean my PC has a virus?
Usually not. Most cases are an account without admin rights, security software doing its job too eagerly, or permissions changed by a cleanup tool. Be suspicious if access denied errors appear on your own documents and the files have been renamed, or if Windows Security has been turned off without your doing. Those signs point to malware and need checking straight away.