Error 0x80070522 appears when you try to copy a file or create a folder in system directories without administrator rights.
Below are quick ways to fix it.
Method 1: Run the program as an administrator
- Find the program you are using for the operation
- Right-click → Run as administrator
- Repeat the action
Method 2: Change folder permissions
- Right-click on the folder → Properties → Security
- Select your account
- Click Edit and set Full control
- Apply the changes
Be careful in system folders: changing permissions can affect the operation of Windows.
Method 3: Use the command prompt with administrator rights
- Open Command Prompt as an administrator
- Perform the operation via command (for example, copying):
copy "C:\path\file.txt" "C:\Windows\System32"
Method 4: Temporarily disable User Account Control (UAC)
- Press Win + S → type UAC → Change User Account Control settings
- Move the slider down to Never notify
- Restart your PC
- After completing the operation, turn UAC back on
Conclusion
Error 0x80070522 is related to insufficient rights. The simplest way is to run the program as an administrator. If you need to frequently work with system folders, configure permissions for your account.