Fix Error Code 0x80070005 Access Denied
In this article
Error code 0x80070005, commonly labeled as 'Access Denied,' occurs in Windows when a user or application lacks sufficient permissions to perform a specific action. This issue frequently appears during Windows updates, file operations, software installations, or system configuration changes. Resolving it typically involves adjusting user permissions, restarting services, or correcting system settings that restrict access. Before starting, ensure you have administrative rights on the computer and can access the affected files or settings.
What You'll Need
- Administrator account access
- Windows operating system (Windows 10 or 11 recommended)
- Internet connection (for downloading updates or tools)
- Optional: USB drive (if repairing system files from recovery)
Step-by-Step
- Run the application or process as Administrator
Right-click the program, installer, or shortcut causing the error and select "Run as administrator." This grants elevated permissions that may bypass the access restriction. - Check your user account type
Go to Settings > Accounts > Family & other users. Ensure your account is listed as "Administrator." If not, change it or log in with an admin account. - Take ownership of the affected folder or file
Navigate to the file or directory (e.g., Windows Update folder). Right-click it, select Properties > Security > Advanced. Change the owner to your user account by clicking "Change" next to the owner name. Check "Replace owner on subcontainers and objects," then apply. - Modify permissions manually
In the same Advanced Security Settings window, click "Edit" under Permissions. Add your user account if not listed. Select it, then check "Full control" under Allow. Apply changes to this folder, subfolders, and files. - Restart Windows Update components
Open Command Prompt as administrator. Run these commands one at a time:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Then restart them:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver - Run the Windows Update Troubleshooter
Go to Settings > System > Troubleshoot > Other troubleshooters. Run the "Windows Update" troubleshooter. It automatically detects and fixes common issues, including permission-related errors. - Repair system files using DISM and SFC
In admin Command Prompt, run:
dism /online /cleanup-image /restorehealth
Wait for completion. Then run:
sfc /scannow
This scans and repairs corrupted system files that may be causing access issues. - Disable antivirus temporarily
Third-party antivirus software can block system operations. Temporarily disable it (do not uninstall) and attempt the operation again. Re-enable immediately after testing. - Check Group Policy settings (Pro/Enterprise editions)
Press Win + R, type "gpedit.msc," and press Enter. Navigate to Computer Configuration > Windows Settings > Security Settings > File System. Ensure no policies are denying access to system folders. - Perform a clean boot
Type "msconfig" in the Run dialog. Under the Services tab, check "Hide all Microsoft services," then click "Disable all." On the Startup tab, open Task Manager and disable all startup items. Restart the PC and try the operation again.
Common Mistakes
- Skipping administrator rights: attempting fixes without admin access ensures failure.
- Incorrect ownership changes: failing to apply ownership recursively to subfolders leaves some files restricted.
- Not restarting services: stopping services without restarting them halts Windows Update and background processes.
- Ignoring antivirus interference: assuming the OS is solely responsible when third-party tools block access.
- Editing registry without backup: while not covered here, some guides suggest registry edits, which can cause system instability if done incorrectly.
Tips
- Always create a system restore point before making major changes.
- Use built-in Windows tools (SFC, DISM, Troubleshooter) before third-party utilities.
- Log in with a local admin account if domain policies are suspected.
- Keep Windows and drivers updated to prevent known permission bugs.
- Document changes made during troubleshooting to reverse them if needed.
Troubleshooting
If the error persists after following all steps, consider deeper system issues. Boot into Safe Mode with Networking and repeat the SFC and DISM scans. If the problem occurs during updates, download the update manually from the Microsoft Update Catalog and install it offline. For file access issues, check disk health using "chkdsk C: /f /r" in admin Command Prompt. If Group Policy is misconfigured, reset it using "gpupdate /force" or reset local policies with "secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose" (use cautiously). In multi-user environments, ensure the affected user has explicit permissions, not just group inheritance. If all else fails, consider creating a new user profile or performing an in-place Windows repair installation using installation media.
Frequently Asked Questions
- What does error 0x80070005 mean?
It means "Access Denied"—the system blocked an action due to insufficient permissions. - Does this error affect all Windows versions?
Yes, it appears in Windows 7, 8, 10, and 11, though resolution steps are similar across versions. - Can malware cause this error?
Yes, some malware restricts access to system files. Run a full scan with Windows Defender or a trusted antivirus. - Why does it happen during Windows Update?
Update services may lack permissions or be locked by another process, requiring service restarts and file repairs. - Is it safe to take ownership of system files?
Yes, if done correctly and temporarily. Avoid modifying system files unless necessary. - Can I fix this without admin rights?
No. Administrative privileges are required to change permissions, run troubleshooters, or modify system settings.