How to Fix Error Code 0x80070005 (Access Denied) in Windows?

Steps

1. Windows Update TroubleshooterPress Windows + I
System → Troubleshoot → Other troubleshooters
Run Windows Update
Restart PC
2. Reset Update CacheOpen Command Prompt as Administrator and run:
textnet stop wuauserv
net stop bits
net stop cryptSvc
net stop msiserver
textren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
textnet start msiserver
net start cryptSvc
net start bits
net start wuauserv
Restart PC
3. Repair System Files
Open Command Prompt as Administrator:
textDISM /Online /Cleanup-Image /RestoreHealth
textsfc /scannow
Restart PC
4. Fix Permissions
Open Command Prompt as Administrator:
texticacls "%windir%\WinSxS" /reset /t /c /q
icacls "%windir%\SoftwareDistribution" /reset /t /c /q
texticacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q
Restart PC
5. Microsoft Store Fix
Press Windows + R
Type wsreset
Press Enter
Restart Store