/
/

How to Fix “A Required Privilege Is Not Held by the Client” Error in Windows 11

by Mauro Mendoza, IT Technical Writer
How to Fix A Required Privilege Is Not Held by the Client Error in Windows 11 blog banner image

Instant Summary

This NinjaOne blog post offers a comprehensive basic CMD commands list and deep dive into Windows commands with over 70 essential cmd commands for both beginners and advanced users. It explains practical command prompt commands for file management, directory navigation, network troubleshooting, disk operations, and automation with real examples to improve productivity. Whether you’re learning foundational cmd commands or mastering advanced Windows CLI tools, this guide helps you use the Command Prompt more effectively.

Getting blocked by the “a required privilege is not held by the client” error when managing your C: drive in Windows 11? You’re not alone. This frustrating message often appears when a broken “Account Unknown” permission block your access.

Broken permissions are often left behind after deleting user accounts, domain changes, or system updates. Without fixing it, you can’t adjust security settings, install critical software, or enforce policies. In this guide, you’ll learn how to safely remove these orphaned entries and regain full control.

For a visual breakdown of this topic, watch How to Fix “A Required Privilege Is Not Held by the Client” Error in Windows 11

Methods for fixing the error message “a required privilege is not held by the client”

Before proceeding to the different approaches to fixing this error, make sure to do both of these requirements:

  1. Backup your system:
    • For all users: Create a restore point.
      1. Press Win + S, then search and open Create restore point.
      2. Click Configure, then enable Turn on system protection.
      3. Click Create, then name it (e.g., Pre_Permission_Fix).
    • For advanced users: For full disk backups, use wbadmin start backup in PowerShell.
  2. Verify “Account Unknown” exists:
    • Open File Explorer, then right-click the C: drive.
    • Go to Properties > Security tab.
    • Click Advanced, then check the Owner field or permission entries for Account Unknown.
    • If you see this, it confirms there are orphaned SIDs blocking access.

Method 1: Take ownership and remove Account Unknown (GUI)

For most users, utilizing the graphical user interface (GUI) is the simplest fix for the “a required privilege is not held by the client” error in Windows 11.

  1. Open advanced security settings:
    • Open File Explorer, then right-click your C: drive.
    • Go to Properties > Security > Advanced.
  2. Take ownership:
    • Click Change permissions, select Administrator accounts from Principal, then choose Edit.
    • Check the box next to Full control.
    • Click Ok.
    • Select Administrators again, then check the box Replace all existing inheritable permissions on all descendants with inheritable permissions from this object.
    • Click OK > Apply.
  3. Remove the orphaned entry:
    • Back in Advanced Security Settings, check the permission entries list.
    • Select any Account Unknown entry, then click Remove.
    • Click Apply > OK to save changes.

Method 2: Fix via Command Prompt (ownership reset)

If the GUI method doesn’t work, this command-line solution can do the trick.

  1. Launch Elevated Command Prompt:
    • Press Win + S, then type cmd.
    • Right-click Command Prompt in the results, then select Run as administrator.
  2. Take ownership recursively:
    • Run this command: takeown /f C:\ /r /d y
    • /r: Applies to all subfolders/files.
    • /d y: Auto-confirms Yes to prompts.
    • Wait until the scan of your entire C: drive finishes (may take 10+ minutes).
  3. Grant full administrative control:
    • After the scan finishes, run this command next: icacls C:\ /grant administrators:F /t
    • administrators:F: Gives Full control to admin accounts.
    • /t: Processes all subdirectories.
    • The line Successfully processed (X number) files will appear to confirm success.

Method 3: PowerShell permission reset (advanced)

For stubborn Account Unknown errors, this PowerShell method forcibly resets permissions to the default.

  1. Launch PowerShell as administrator:
    • Press Win + X, then select Windows Terminal (Admin).
    • If PowerShell is not the default command-line tool, select the dropdown arrow next to the tabs above, then select PowerShell.
  2. Run reset commands:
    • Run the commands below to remove residual SIDs and reassign ACLs:
      $targetPath = “C:\Your\Target\Directory”

      # Recursively get all files and folders

      Get-ChildItem -Path $targetPath -Recurse -Force | ForEach-Object {

      $acl = Get-Acl -Path $_.FullName

      $modified = $false

      foreach ($access in $acl.Access) {

      if ($access.IdentityReference.Value -match “^S-1-5-“) {

      $acl.RemoveAccessRule($access)

      $modified = $true

      }

      }

      if ($modified) {

      Set-Acl -Path $_.FullName -AclObject $acl

      Write-Host “Removed orphaned SIDs from $($_.FullName)”

      }

      }

    • Replace “C:\Your\Target\Directory” with the path to the directory you wish to clean.
    • The script processes all files and subdirectories within the specified path.
    • It identifies orphaned SIDs by matching the pattern “^S-1-5-“, which corresponds to standard SID formats.

Symptoms of “a required privilege is not held by the client” error

Now that you’ve learned the methods for fixing this error, recognize these symptoms to give you a better understanding that you’re facing the ‘required privilege’ error:

Blocked permission changes

The error appears when you’re editing C: drive permissions (right-click > Properties > Security > Advanced). For instance, trying to add or remove users triggers “a required privilege is not held by the client” failures.

Visible “Account Unknown” entries

In Security > Advanced, you’ll see entries like Account Unknown (S-1-5-21-…). This means that the orphaned SIDs lack valid user/group mappings.

Broken inheritance

This happens when the Disable inheritance or Replace all child permissions buttons fail, and an error occurs while applying security information. It will also show that subfolders or files have retained corrupted permissions despite parent changes.

Command-line failures

Running takeown or icacls commands in Command Prompt returns this message:

ACCESS DENIED

This error (a required privilege is not held by the client) often blocks fixes.

Pro tips and key considerations related to “a required privilege is not held by the client” error

Keep these expert insights in mind when resolving the “required privilege” error in Windows 11.

Account Unknown SIDs are usually safe to remove

These SIDs appear when user accounts are deleted, PCs are removed from a domain, or the system clones “retain old permissions.” You can delete them only if the original account is permanently gone.

Protect your system volume

Never reset permissions on C:\WindowsProgram Files, or system folders unless absolutely necessary. Incorrect changes may crash your OS or trigger activation errors.

High-risk scenarios

This error frequently appears after a domain detachment, when a work device is converted to personal use or removed from an enterprise environment. It also happens after a system cloning without SID cleanup and during bulk profile deletion scripts.

For domain-joined PCs, always clean computer accounts in Active Directory before reimaging to prevent this Windows error. You can do the next tip on how to verify your permissions after these scenarios.

Verify your permissions

Run these checks in an Elevated Command Prompt:

whoami /groups > Check current group membership

gpresult /h permissions_report.html > Review applied policies

Look for a missing Administrators group or conflicting domain policies.

Quick-Start Guide

NinjaOne has several troubleshooting resources related to Windows privileges and update issues:

1. For Windows Update and Patch Management:

NinjaOne provides scripts and tools to diagnose and resolve Windows Update issues. They recommend checking:

Group Policy settings

  • Firewall rules
  • Antivirus/EDR configurations
  • Windows Update service health

2. For Privilege-Related Errors:

The error often indicates access or permission problems. Potential solutions include:

  • Verifying user account permissions
  • Checking group policy configurations
  • Ensuring the correct administrative rights are in place

3. Recommended Troubleshooting Steps:

  • Run Windows Update Diagnostic script from NinjaOne’s Automation Library
  • Check firewall allowlist instructions
  • Unblock any Ninja processes flagged by antivirus/EDR systems
  • Verify Windows Update service is functioning correctly

Resolving the “a required privilege is not held by the client” error

Orphaned “Account Unknown” entries can suddenly lock you out of your system. As we’ve seen, this “a required privilege is not held by the client” error strikes when deleted accounts leave broken permissions on your C: drive.

Fortunately, reclaiming access is straightforward: use the Security tab’s Advanced settings to take ownership and remove invalid entries, or automate the fix with command-line tools like takeown and icacls.

Always create a restore point first. It takes two minutes but prevents big problems. After fixing permissions, check the Security tab to confirm everything works right. With these steps, you’ll stay in control of your Windows 11 PC.

You might also like

Ready to simplify the hardest parts of IT?

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).