Application deployment

0x80070522: A required privilege is not held by the client

The process did not have a Windows privilege it needs. In SCCM the install often runs as a standard user, or without elevation.

Hex code0x80070522
Decimal-2147023582
NameERROR_PRIVILEGE_NOT_HELD
Logs to readAppEnforce.log, execmgr.log, smsts.log

What 0x80070522 means

0x80070522 means "A required privilege is not held by the client". The account may be allowed to touch the file, but it lacks a special Windows right for the action. Examples are the rights to load a driver, to back up files or to create a symbolic link.

You see it in Software Center on a failed install and in the console under Monitoring > Deployments. On the client, check AppEnforce.log, execmgr.log for packages, or smsts.log for a task sequence step.

Common causes

  • The deployment type is set to "Install for user", and the user is not an administrator.
  • A package program runs with the user's rights and not with administrative rights.
  • A task sequence step runs as a named account that lacks the right.
  • You tested the command by hand in a prompt that was not elevated.
  • A security policy removed a user right from the account.

How to fix 0x80070522

  1. Check which account ran the install

    Open AppEnforce.log and find the failed command. The log shows whether it ran in the user or the machine context. Then open the deployment type in the console and go to the User Experience tab. Look at "Installation behavior".

  2. Install for system

    Set "Installation behavior" to "Install for system". The install then runs as the local SYSTEM account, which holds the privileges an installer needs. Check that the installer supports a silent machine-wide install, and adjust the detection method if the install location changes.

    For a package, open the program, go to the Environment tab and choose "Run with administrative rights".

  3. Test as SYSTEM

    Open a SYSTEM command prompt with PsExec and run the same command. If it works there, the account was the problem. If it fails there too, read the installer log to find which action needs the privilege.

  4. Check accounts in the task sequence

    In a task sequence, find the failed step in smsts.log. If the step has "Run this step as the following account", try it without that option so it runs as SYSTEM. If it needs the account for network access, grant that account the missing right on the client.

  5. Check user rights policy

    Run whoami /priv in the same context as the install. It lists the privileges the account holds. If one is missing that should be there, look at the User Rights Assignment settings in your Group Policy.

Commands that help

Open a command prompt as SYSTEM (needs PsExec from Sysinternals) · Command Prompt
psexec.exe -s -i cmd.exe
List the privileges of the current account · Command Prompt
whoami /priv
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.