[Solution] Error 0x80070005 Windows 11/10 — Access Denied Fix
Error 0x80070005 is the Windows “Access Denied” error that blocks you from installing updates, opening files, or running applications. It appears whenever Windows refuses to grant the necessary permissions for an operation.
This error affects both Windows 10 and 11 and is one of the most common barriers to completing Windows Updates, modifying system files, and launching programs that require elevated privileges.
Description
The full error message typically reads:
“Error(s) found: Code 0x80070005. Windows Update ran into a problem.”
Or in file operation contexts:
“Destination Folder Access Denied. You need permission to perform this action.”
Error 0x80070005 maps to the standard Windows ACCESS_DENIED result, which means the operating system’s security subsystem explicitly blocked the requested operation. This can be triggered by user account permissions, group policy restrictions, or security software.
The error appears in these common scenarios:
- Windows Update — Installation or download of updates fails
- File and folder operations — Copying, moving, or deleting protected files
- Application launches — Programs that need admin rights fail to start
- Registry modifications — Editing protected registry keys
- Network shared folders — Accessing SMB shares with insufficient permissions
Common Causes
- Insufficient user account permissions — Your account lacks the required privileges for the operation.
- File/folder ownership issues — System files owned by another account or the TrustedInstaller service.
- Group Policy restrictions — Enterprise or organization policies blocking the operation.
- Antivirus software interference — Security programs locking files or blocking access.
- Corrupted Windows Update database — The SoftwareDistribution folder has permission or integrity issues.
- User Account Control (UAC) settings — UAC not prompting for elevation when needed.
Solutions
Solution 1: Take Ownership of Files or Folders
If the error occurs when accessing specific files or folders, you may need to take ownership. Open Command Prompt as Administrator and use these commands:
takeown /f "C:\Path\To\Problem\Folder" /r /d y
icacls "C:\Path\To\Problem\Folder" /grant administrators:F /t
Replace C:\Path\To\Problem\Folder with the actual path. The /r flag makes it recursive (includes all subfolders and files).
For system files specifically, you can use PowerShell for more granular control:
$folder = "C:\Path\To\Problem\Folder"
$acl = Get-Acl $folder
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Administrators","FullControl","ContainerInherit,ObjectInherit","None","Allow")
$acl.SetAccessRule($rule)
Set-Acl $folder $acl
Solution 2: Grant Full Control Permissions
After taking ownership, grant full control to your user account:
icacls "C:\Path\To\Problem\Folder" /grant %username%:F /t
Or grant permissions to the Users group:
icacls "C:\Path\To\Problem\Folder" /grant Users:F /t
For a more targeted approach through the GUI:
- Right-click the file or folder and select Properties.
- Go to the Security tab and click Edit.
- Select your user account from the list.
- Check Full Control under the Allow column.
- Click Apply and then OK.
Solution 3: Run as Administrator
Many access denied errors occur because the application or process doesn’t have elevated privileges.
For a specific application:
- Right-click the application shortcut or executable.
- Select Run as administrator.
- Click Yes on the UAC prompt.
To permanently set an application to always run as admin:
- Right-click the application and select Properties.
- Go to the Compatibility tab.
- Check Run this program as an administrator.
- Click Apply and OK.
For Command Prompt or PowerShell operations:
runas /user:Administrator "cmd.exe /c your-command-here"
Or simply search for “cmd” in the Start menu, right-click it, and choose Run as administrator.
Solution 4: Temporarily Disable Antivirus
Third-party antivirus programs can lock system files and block legitimate operations.
- Open your antivirus application from the system tray.
- Navigate to Settings > Protection or Real-time scanning.
- Disable real-time protection for 15–30 minutes.
- Perform the operation that was failing.
- Re-enable antivirus protection immediately after.
For Windows Defender specifically:
Set-MpPreference -DisableRealtimeMonitoring $true
Re-enable it after testing:
Set-MpPreference -DisableRealtimeMonitoring $false
Solution 5: Fix Windows Update Access Denied
When 0x80070005 appears during Windows Update, a targeted fix involves resetting the update components with proper permissions:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Reset folder permissions and clear the cache:
icacls "C:\Windows\SoftwareDistribution" /grant administrators:F /t
icacls "C:\Windows\System32\catroot2" /grant administrators:F /t
rd /s /q "C:\Windows\SoftwareDistribution"
rd /s /q "C:\Windows\System32\catroot2"
Restart the services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Solution 6: Check Group Policy Settings
In enterprise environments, Group Policy may be blocking the operation. Check the relevant policies:
gpresult /h C:\gpreport.html
Open the generated HTML report and look for denied policies under Applied GPOs. Common policies that cause 0x80070005:
- User Account Control: Run all administrators in Admin Approval Mode
- Windows Update: Configure Automatic Updates
- Deny access to drives from My Computer
If you have admin access, modify the policy through gpedit.msc:
gpedit.msc
Navigate to the relevant policy path and adjust the settings as needed. Run gpupdate /force after making changes.
Solution 7: Fix Registry Permissions
If the error occurs when modifying registry keys:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v "ProgramFilesDir" /t REG_SZ /d "C:\Program Files" /f
If that fails with access denied, use the Registry Editor with elevated privileges:
- Press
Win + R, typeregedit, and press Ctrl + Shift + Enter. - Navigate to the key you need to modify.
- Right-click the key, select Permissions.
- Click Advanced and then Change the owner to your account.
- Grant your account Full Control.
- Apply changes and retry the operation.
Related Errors
- Error 0x80004005 — Unspecified Error that often co-occurs with access denied issues
- Error 0x80070002 — File Not Found error during Windows Update
- Error 0x80070035 — Network path not found, related to network permission issues
- Error 0x80070043 — The network name cannot be found, shares permission-related roots
- Error 0x80070003 — Path not found, similar but points to missing directories