What causes error 0x80070005
- Your account, or the process doing the work, lacks administrator rights.
- Incorrect permissions on system folders such as
C:\Windows\SoftwareDistributionorC:\ProgramData. - Antivirus or security software blocking access to files.
- Corrupted Windows Update components or system files.
- Wrong system date and time, which can break secure connections to update servers.
Fix 1: Run the action as administrator
Make sure you are signed in with an administrator account. For installers and tools, right-click the file and select Run as administrator. To check your account type, go to Settings > Accounts > Your info. It should say Administrator under your name.Fix 2: Check the date, time, and time zone
1
Open time settings
Go to Settings > Time & language > Date & time.
2
Turn on automatic time
Turn on Set time automatically and Set time zone automatically.
3
Sync now
Click Sync now, then retry the update or install.
Fix 3: Temporarily disable third-party antivirus
Some antivirus products block Windows Update or installers from writing to protected folders. Turn off real-time protection in your antivirus, retry the action, then turn protection back on.Fix 4: Run the Windows Update troubleshooter
- Windows 11: Go to Settings > System > Troubleshoot > Other troubleshooters, then click Run next to Windows Update.
- Windows 10: Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters, select Windows Update, and click Run the troubleshooter.
Fix 5: Reset Windows Update components
If the error appears during Windows Update, clear the update cache. Open Command Prompt as administrator and run:Command Prompt
Fix 6: Take ownership and reset folder permissions
If the error names a specific folder, or happens when you open or change files, reset that folder’s permissions.1
Open folder properties
Right-click the folder, select Properties, and open the Security tab.
2
Change the owner
Click Advanced, then Change next to Owner. Enter your user name, click Check Names, and click OK. Select Replace owner on subcontainers and objects.
3
Grant full control
Back on the Security tab, click Edit, select your account, and check Full control. Click Apply.
Command Prompt
Fix 7: Repair system files with SFC and DISM
Open Command Prompt as administrator and run these commands one at a time:Command Prompt
Fix 8: Reset the Microsoft Store
If the error appears in Microsoft Store, press Windows + R, typewsreset.exe, and press Enter. The Store cache clears and the Store opens automatically when it is done.
Frequently asked questions
What does E_ACCESSDENIED mean?
What does E_ACCESSDENIED mean?
It is the Windows code for “Access is denied”. The process that hit the error did not have permission to read or write a file, folder, or registry key.
Can error 0x80070005 appear in System Restore?
Can error 0x80070005 appear in System Restore?
Yes. Disable your antivirus temporarily, or run System Restore from Safe Mode, where third-party software does not load.
I am on a work or school PC. What should I do?
I am on a work or school PC. What should I do?
Your organization may restrict permissions through policy. Contact your IT administrator instead of changing ownership or permissions yourself.
Related errors
Fix 0x80070422: The service cannot be started
Fix Windows Update errors caused by disabled services.