Error 0x80070522: Required privilege not held by the client when copying files

When you copy files to a non-system drive’s root folder, the error code 0x80070522 (“ERROR_PRIVILEGE_NOT_HELD”) may occur. The full error message verbatim is mentioned below:

An unexpected error is keeping you from copying 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.

0x80070522 unexpected error when copying a file - privilege not held.

The above error may occur even though you’re logged in as administrator and the “Administrators” have Full Control permissions for the non-system root folder.

Cause

The above error occurs if the non-system drive’s root folder is assigned the “High” Mandatory Integrity level. By default, the “High” integrity level is only assigned for the OS partition’s root folder — usually C:. When a folder has “High” integrity level, only elevated processes can write to that folder.

(For more information about integrity levels, see the article Mandatory Integrity Control at Microsoft Learn.)

Running the ICACLS D:\ command may show something like this:

0x80070522 unexpected error when copying a file - privilege not held. when copying files

Mandatory Label\High Mandatory Level:(OI)(NP)(IO)(NW)

If the secondary drive’s root folder has a “High” integrity level, it could be because the drive was once an OS partition — e.g., dual boot installation, or you connected the secondary disk from another computer.

Resolution

Setting the Mandatory integrity level to “Medium” integrity for the non-system drive’s root folder fixes the issue.

Open an admin Command Prompt window.



Type the following command:

icacls D:\ /setintegritylevel M

Press Enter.

You should see the message “Successfully processed 1 files; Failed processing 0 files” as the output.

Now, running the ICACLS D:\ command will show that the root folder has a Medium integrity level.


We’ve also covered the icacls.exe’s /setintegritylevel command-line argument in these articles.

I hope that helps. Let me know your comments.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

2 thoughts on “Error 0x80070522: Required privilege not held by the client when copying files”

  1. Yours is the only source online I can find of value in resolving this issue. Your passion in the subject is clear where many other sources are found to be lacking. Thank you for this answer.

    Reply

Leave a Comment