Fixed: A required privilege is not held by the client error


When you try to copy a file or create a file inside the directory without having the required permission, then you will get the ‘A required privilege is not held by the client’ error.

The full error message reads as follows:

‘An unexpected error is keeping you from creating the file. If you continue to receive this error, you can use the error code to search for help with this problem.

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

You will most probably get this error when you try modifying some files inside the Windows folder but you don’t have the authorization to do so.

This error will prevent you from creating files or modifying them. If you get this error, then this article will help you with solving it.

In this article, we will be discussing how you can fix the ‘A required privilege is not held by the client’ error.

How To Fix ‘A Required Privilege Is Not Held By The Client’ Error?

How to fix 'A Required Privilege Is Not Held By The Client' Error
How to fix ‘A Required Privilege Is Not Held By The Client’ Error

Given below are the fixes for the ‘A required privilege is not held by the client’ error-

Run The Program As Administrator

You will have to run the program as an administrator and you will no longer face the error.

If you want to make some changes to the application in the root folder, then you will first have to run it as an administrator.

To run the program as an administrator, you have to right-click on the program that you want to make changes to.

After right-clicking on the program, click on Run as administrator to run the program as administrator.

Running the program as an administrator will give the administrator privileges that allow it to make changes to the system.

Running a program as an administrator can be helpful when a program wants to make changes to the system.

Copy Files Using Command Prompt

If you want to copy files to the root folder where your Windows is installed, then you can simply use the command prompt.

The root folder will be the C drive on your PC because that is generally where your Windows is installed.

We have already discussed that making any changes to the root folder requires administrator privileges, and if you want to copy a file to the root folder then you can easily do it with a command prompt.

To copy files using Command Prompt, follow the steps given below-

  • Open the start menu by clicking on the start icon.
  • In the start menu, search for the command prompt. Right-click on it and then click on run as administrator. 
  • Ensure you run it as administrator because copying files to the root folder will need administrator privileges.
  • Now type in the command copy F:\file.txt C:\ and hit enter to run the command. Replace by the letter of the drive from which you are copying the file.
  • Replace file.txt with the exact file name that you want to copy. You need not replace because that’s where Windows is generally installed.
  • However, if you have installed Windows on any other driver, then replace the letter with the letter of that drive.

Using this method, you will be able to copy files from one drive to the root folder. If you copy the file using this method you will no longer face the ‘A required privilege is not held by the client’ error.

Disable UAC

If you get the ‘A required privilege is not held by the client’ error when making changes to the root folder, then you can disable UAC.

You can use Registry Editor to disable UAC. However, do note that this will only work with the Home version of Windows.

If you use any other version of Windows except for Home Edition, then this won’t work for you.

To disable UAC using Registry Editor, follow the steps given below-

  • Open the start menu and search for Registry Editor and open it.
  • In the Registry Editor, navigate to the following path-
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  • In the system key, double-click on EnableLUA.
  • Now set its value to 0, and then click on OK. 

Disable The Admin Approval Mode

You can disable the admin approval mode if you keep on getting ‘A required privilege is not held by the client’ error when trying to modifying files on root folders.

By doing so, your system will not ask you for administrator privileges whenever you try to modify system files.  

However, do not that this method will not work for the Home edition of Windows. So if you are using the Home edition of Windows, then you should not try going for it.

If you have any other edition of Windows apart from Home Edition, follow the steps given below-

  • Press the Windows + R on your keyboard. This will open the run dialog box.
  • In the run dialog box, type in secpol.msc and click hit Enter. 
  • In the next window that pops up, double-click on security settings.
  • In the security settings, double-click on local policies.
  • Here you will find security options, double click on it.
  • In the left window ensure security options is highlighted, and then search for ‘User Account Control: Admin Approval Mode for the Built-in Administrator account,’ and double click on it.
  • Disable it from here, and then click on OK.
  • Now close the Local Security Policy window and reboot your PC.

After following the above steps, you will no longer face the error that you were facing when modifying the system files.

Change Sharing Permission

Changing sharing permission can also help solve the ‘A required privilege is not held by the client’ error. To change sharing permission, follow the steps given below-

  • Open the File Explorer on your PC.
  • Now right click on the drive where your Windows is installed (generally it will be Drive C), and then click on properties. 
  • In disk properties, head to the Sharing tab, and then click on the advanced sharing button.
  • Now check the share this folder option, and then click on the permissions button.
  • Now select the Everyone under the group or user names, and then allow the Full Control. You can do so by checking the Allow box present right next to Full Control. 
  • Once done, click on Apply, and then close the window.
  • Restart your PC, and try modifying the file again, and you won’t face the issue again.

Take Ownership Of The Root Drive

You can take ownership of the root drive so that you won’t face the issue any longer.

Note- It is suggested that you create a restore point, and ensure having a backup of your files before you continue with this step.

Taking ownership of the root drive can mess up with your Windows, therefore, creating a restore point is essential, so that you can revert the changes done to the system if something went wrong.

Follow the steps given below to take ownership of the root drive-

  • Right-click on the Windows installation drive (generally C drive), and then click on properties. 
  • Head to the security tab in the disk properties window.
  • Click on the advanced option.
  • Now click on the change permissions option.
  • Here select your administrator account, and then click on edit. 
  • Now, check the Full control checkbox.
  • Once done, click on OK. 
  • You will be headed back to the owner screen. Select the administrator, and then checkmark the ‘replace all existing inheritable permissions on all descendants with inheritable permissions from this object’ option.
  • You will be asked for permission to the changes. Click on OK. 
  • Now click on Apply, and close the window.
  • Once done, restart your PC to make the changes to your system.

Once done, you will no longer face the ‘A required privilege is not held by the client’ error. Ensure you follow the steps correctly, else your system can be damaged.

Conclusion

That’s how you can fix the ‘A required privilege is not held by the client’ error. Following the steps given above will help you solve the issue.

We hope you find the solution to your problem with this article. Ensure you follow the steps correctly. If this article helped you solve the error, do let us know in the comments section.

Recent Posts