Attempting to install Windows updates, download apps from the Microsoft Store, restore system backups, or configure user permissions in Windows 11 only for the operation to fail with the message: “Something went wrong. Error 0x80070005: Access is denied” brings system maintenance to an immediate halt. In the Windows NT security architecture, 0x80070005 translates directly to the Win32 error code ERROR_ACCESS_DENIED. It occurs when a running service, installer process, or system updater attempts to read, write, or execute files in protected directories (such as C:\Windows\SoftwareDistribution, C:\Program Files\WindowsApps, or registry keys in HKLM\SYSTEM) without holding the mandatory Discretionary Access Control List (DACL) permissions. This guide provides structured methods to restore default system permissions and eliminate Error 0x80070005 in Windows 11.
Primary Factors Behind Error 0x80070005
While Error 0x80070005 indicates a permission block, the root cause is rarely an intentional user restriction. Common triggers include:
- Corrupted Windows Update SoftwareDistribution Folder: Damaged access control lists on the temporary update staging directory preventing the Windows Update service (
wuauserv) from writing patches. - Third-Party Antivirus File Locking: Security suites aggressively locking temporary download containers while performing real-time heuristic scans.
- Altered User Profile DACL Permissions: Modified permissions on
%LOCALAPPDATA%orAppData\Local\Packagespreventing Universal Windows Platform (UWP) apps from updating. - Group Policy Object (GPO) Restrictions: Enterprise or local security policies denying standard system services the right to modify registry hives.
- Corrupted Windows Component Store (WinSxS): Damaged system manifests preventing the TrustedInstaller service from committing system updates.
Method 1: Reset the Windows Update Staging Folders
If Error 0x80070005 occurs during Windows Update, resetting the SoftwareDistribution and Catroot2 folders eliminates damaged permission flags.
- Press the Windows Key, type cmd, right-click Command Prompt, and select Run as administrator.
- Stop core update services by executing the following commands sequentially:
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver - Rename the corrupted staging folders:
ren C:WindowsSoftwareDistribution SoftwareDistribution.old ren C:WindowsSystem32catroot2 catroot2.old - Restart the update services:
net start wuauserv net start cryptSvc net start bits net start msiserver - Open Settings > Windows Update and click Check for updates.
Method 2: Reset Folder Permissions with SubInACL / ICACLS
Restoring default access control lists across system directories grants system accounts (SYSTEM and TrustedInstaller) full control.
- In an administrative Command Prompt, navigate to your user AppData directory:
icacls "%localappdata%Packages" /reset /t /c /q - Next, reset permissions on the WindowsApps directory if Microsoft Store apps fail:
takeown /F "C:Program FilesWindowsApps" /r /d y icacls "C:Program FilesWindowsApps" /grant Administrators:F /t - Restart your computer to allow Windows to reapply system inheritance across all user folders.
Method 3: Run the Windows Update Troubleshooter
Windows 11 includes an automated diagnostic tool that detects and repairs misconfigured security descriptors.
- Press Windows Key + I to open Settings.
- Navigate to System > Troubleshoot > Other troubleshooters.
- Locate Windows Update and click the Run button.
- Allow the troubleshooter to scan for missing registry permissions and apply automated fixes.
Method 4: Run DISM and System File Checker
Repairing corrupted Windows manifests ensures that TrustedInstaller can access protected system binaries.
- In an elevated Command Prompt, execute:
DISM /Online /Cleanup-Image /RestoreHealth - Once DISM reports success, execute:
sfc /scannow - Restart Windows 11 once repairs complete.