Fix Required Privilege Is Not Held by the Client
In this article
- What This Error Actually Means
- Common Scenarios Where This Error Appears
- Quick Fix: Run as Administrator
- Adjust Local Security Policy (Windows Pro and Enterprise)
- Take Ownership of the File or Registry Key
- Command-Line Solutions: takeown and icacls
- What to Do on Windows Home (No secpol.msc)
- Frequently Asked Questions
The error “Required privilege is not held by the client” means Windows has blocked an operation because your user account lacks the specific security right needed to perform it. The fix is to run the action as an administrator, adjust the relevant local security policy, or take ownership of the file or registry key involved.
What This Error Actually Means
Windows uses a permission system called access control. Every securable object—files, folders, registry keys, services, and even certain system functions—has an access control list (ACL) that specifies which users or groups can do what. When you try to perform an action like deleting a protected system file, changing a service setting, or editing a registry key, Windows checks your token against that ACL. If your account doesn’t hold the required privilege, you get the “Required privilege is not held by the client” message.
This is different from a simple “Access Denied” error. Access Denied usually means the ACL explicitly denies you or your group. The “required privilege” error means the operation needs a specific user right that your account simply hasn’t been granted, even if you are an administrator. For example, the right to “Take ownership of files or other objects” or “Replace a process level token” are privileges that must be explicitly assigned in the Local Security Policy.
Common Scenarios Where This Error Appears
- Deleting or modifying system files like those in
C:\Windows\System32orC:\Program Files. - Editing registry keys under
HKEY_LOCAL_MACHINE, especially those owned by TrustedInstaller. - Changing service settings or trying to start/stop a protected Windows service.
- Running certain command-line tools like
net user,sc config, ortakeownwithout elevated privileges. - Installing or updating drivers that require the “Load and unload device drivers” privilege.
- Accessing or modifying the SAM or SYSTEM registry hives when troubleshooting account issues.
Quick Fix: Run as Administrator
The most common cause is that the program or command prompt isn’t elevated. Even if your account is in the Administrators group, Windows runs most applications with a restricted token by default due to User Account Control (UAC). The privilege is present but not enabled in your token.
- Right-click the program or Command Prompt icon.
- Select Run as administrator.
- Click Yes on the UAC prompt.
- Retry the operation that failed.
If the error came from a script or batch file, open an elevated Command Prompt and run the script from there. For PowerShell, right-click and choose Run as Administrator.
If this doesn’t fix it, the privilege itself may be missing from your account’s user rights assignment. That brings us to the Local Security Policy.
Adjust Local Security Policy (Windows Pro and Enterprise)
The Local Security Policy editor (secpol.msc) lets you assign user rights. This is only available on Windows Pro, Enterprise, and Education editions. Windows Home users don’t have this tool; see the registry workaround below.
- Press Win + R, type
secpol.msc, and press Enter. - Navigate to Security Settings > Local Policies > User Rights Assignment.
- Find the privilege that the error mentions (for example, “Take ownership of files or other objects” or “Load and unload device drivers”).
- Double-click it, click Add User or Group, add your account, and click OK.
- Close the editor and restart the computer for the change to take effect.
Be careful: granting unnecessary privileges can weaken system security. Only add the specific privilege that the failing operation requires. If you’re not sure which privilege is needed, the error message often names it explicitly. For instance, “Required privilege is not held by the client” might be accompanied by a code like 0x80070522 (which is ERROR_PRIVILEGE_NOT_HELD).
Take Ownership of the File or Registry Key
Sometimes the issue isn’t a missing privilege but that the object is owned by a different account, like TrustedInstaller or SYSTEM. Even administrators can’t change permissions on an object they don’t own unless they have the “Take ownership” privilege. Here’s how to take ownership of a file:
- Right-click the file or folder and select Properties.
- Go to the Security tab and click Advanced.
- Next to “Owner,” click Change.
- Type your username, click Check Names, then OK.
- Check “Replace owner on subcontainers and objects” if needed, then OK.
For registry keys, open regedit.exe, navigate to the key, right-click it, select Permissions, then Advanced, and follow the same ownership steps. After taking ownership, you can grant yourself full control and then make the changes you need.
Command-Line Solutions: takeown and icacls
If you prefer the command line, you can use takeown and icacls from an elevated prompt.
takeown /f "C:\path\to\file"takes ownership of the file.icacls "C:\path\to\file" /grant username:Fgrants full control to your user.
For a folder and all its contents, add /t to both commands. For example:
takeown /f "C:\Windows\System32\somefile.dll" /t
icacls "C:\Windows\System32\somefile.dll" /grant YourUsername:F /tBe extremely careful when modifying system files. Changing ownership or permissions on critical system components can cause instability or security vulnerabilities. Only do this when you know exactly what you’re changing and why.
What to Do on Windows Home (No secpol.msc)
Windows Home doesn’t include the Local Security Policy editor. However, you can still modify user rights via the registry, but it’s risky and not officially supported. A safer approach is to use the User Account Control settings or create a new administrator account.
If you need to run a specific tool that requires a privilege, try these steps:
- Right-click the executable and select Troubleshoot compatibility — sometimes this applies the right settings.
- Create a new local administrator account and try the operation from that account.
- Use Group Policy if you’re on a domain (even with Windows Home, domain policies can apply).
If none of these work, you may need to upgrade to Windows Pro to access the full security policy tools.
Frequently Asked Questions
Why do I get this error even though I’m an administrator?
Because of User Account Control, your admin token is filtered. The privilege exists but isn’t enabled in your token unless you explicitly run the program as administrator. Right-click and choose “Run as administrator” to elevate.
What does “privilege not held” mean in plain English?
It means your user account doesn’t have the specific security right required to perform that action. It’s like trying to enter a restricted area without the correct badge, even if you have a general employee ID.
Can I fix this by disabling UAC?
Disabling UAC is not recommended and often doesn’t fix the issue. It can actually make things worse because some operations require the elevated token to be properly configured. Instead, run the specific program as administrator.
Is it safe to take ownership of system files?
Generally, you should avoid taking ownership of system files unless absolutely necessary. It can expose the system to malware or cause Windows updates to fail. If you must, only take ownership of the specific file you need to modify, and consider restoring the original ownership afterward.
What if the error comes from a third-party application?
Try reinstalling the application with administrator rights. If the app needs to write to protected locations, it should request elevation itself. If it doesn’t, run it as administrator manually or check the vendor’s documentation for the required privileges.
How do I find out which privilege is missing?
The error message often includes a numeric code like 0x80070522. You can look up that code, but the simplest way is to try the operation with Process Monitor (from Microsoft Sysinternals) to see exactly which privilege is being checked. However, for most users, running as administrator or taking ownership solves the problem.