Error 0x80070522: User does not have the required permissions usually appears when a user tries to copy or change a file that should not be changed. Sometimes this error also appears when trying to add a new file to the root folder.
This is good in that it serves as a warning before making changes to the operating system. However, there are times when you just want to copy a file to a specific folder without any restrictions. In this case, you will have to bypass error 0x80070522: The user does not have the necessary permissions.