Application deployment

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.

Hex code0x80070005
Decimal-2147024891
NameE_ACCESSDENIED
Logs to readAppEnforce.log, CAS.log, execmgr.log, ccmsetup.log

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

  1. Find what was denied

    Open C:\Windows\CCM\Logs\AppEnforce.log on 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.log to the install command and run the deployment again.

  2. 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.

  3. 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.

  4. 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.

  5. Check the client push account

    For client push, open ccm.log on the site server. Make sure the client push installation account is in the local Administrators group on the target. Make sure the ADMIN$ share is reachable.

Commands that help

Open a command prompt as SYSTEM (needs PsExec from Sysinternals) · Command Prompt
psexec.exe -s -i cmd.exe
Show who has rights on the client cache folder · PowerShell
icacls C:\Windows\ccmcache
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.