0x80070005: Access is denied
Windows refused access to a file, folder, registry key or share. In SCCM the SYSTEM account or a network account usually lacks rights.
What 0x80070005 means
0x80070005 means Windows said "Access is denied". Something tried to read, write or run an item and did not have the rights.
You see it in Software Center on a failed install, and in the console under Monitoring > Deployments on the Error tab. On the client, look in AppEnforce.log for applications, execmgr.log for packages and CAS.log for content. During client install, look in ccmsetup.log.
Common causes
- The installer reaches for a network share. The SYSTEM account uses the computer account on the network, and that account has no rights there.
- The install runs as the user ("Install for user") and the user is not a local admin.
- Security software blocks the installer or locks files in
C:\Windows\ccmcache. - Client push fails because the push account is not a local admin on the target computer.
- Permissions on the install folder or a registry key were changed by hand or by policy.
How to fix 0x80070005
-
Find what was denied
Open
C:\Windows\CCM\Logs\AppEnforce.logon the client. Find the command line and the exit code for the failed install. If the installer writes its own log, read that too. It names the file or key that was refused.For an MSI, add
/l*v C:\Windows\Temp\install.logto the install command and run the deployment again. -
Run the install as SYSTEM by hand
SCCM runs most installs as the local SYSTEM account. Copy the content to the client. Open a SYSTEM command prompt with PsExec from Sysinternals. Run the same command line from that prompt.
If it fails the same way, the problem is in the installer or its rights, not in SCCM.
-
Remove any reach to a share from the install
Do not point the install command at a UNC path. Put every file the installer needs in the content source folder. Then update the content on the distribution points.
If the install must read a share, give the "Domain Computers" group read rights on both the share and the folder.
-
Check security software
Look in your antivirus or application control log at the time of the failure. If it blocked the installer, add an exclusion or an allow rule. Then retry the deployment.
-
Check the client push account
For client push, open
ccm.logon the site server. Make sure the client push installation account is in the local Administrators group on the target. Make sure theADMIN$share is reachable.
Commands that help
psexec.exe -s -i cmd.exe
icacls C:\Windows\ccmcache
Turn any hex or decimal error code into its meaning, or search every code on this site.