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.
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
-
Check which account ran the install
Open
AppEnforce.logand 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". -
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".
-
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.
-
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. -
Check user rights policy
Run
whoami /privin 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
psexec.exe -s -i cmd.exe
whoami /priv
Turn any hex or decimal error code into its meaning, or search every code on this site.