sodcalculator

10 Tech How-To

Fix Windows Error 0x80070522: Steps That Work

Guide 10-46168 · Updated · Step by step

Error 0x80070522 appears when Windows blocks a file operation because the process lacks the required privilege, often during a copy, delete, or save. The fix is to run the operation with elevated permissions or adjust the folder’s security settings. This article explains the causes and provides step-by-step solutions.

What Does Error 0x80070522 Mean?

Error 0x80070522 is a Windows error code that translates to “A required privilege is not held by the client.” It typically occurs when you try to modify files or folders in protected system locations, such as C:\Windows, Program Files, or the root of the system drive. The error can also appear when a program attempts to write to a location where the current user account lacks the necessary permissions, even if the account is an administrator.

The underlying cause is usually User Account Control (UAC) or a misconfigured security descriptor. UAC limits even administrator accounts to standard user privileges unless a process is explicitly elevated. If the application you are using is not running as administrator, it cannot write to protected areas, resulting in this error.

Why Does This Error Happen?

Windows protects critical system files and folders from unauthorized changes. Even when you are logged in as an administrator, your processes run with a filtered access token. This means that the system checks each operation against the security settings of the target folder. If the folder’s permissions do not grant your user account the “write” or “modify” right, Windows returns error 0x80070522.

Common scenarios include:

  • Copying files into C:\Program Files or C:\Windows without elevation.
  • Editing a file in a folder that is owned by the TrustedInstaller service.
  • Running a portable application that tries to write to its own folder inside a protected directory.
  • Using a network share where the remote permissions are restrictive.

In most cases, the solution involves either granting your account the necessary permissions on the target folder or running the operation with administrative rights.

How to Fix Error 0x80070522

Follow these steps in order. The first method is the simplest and works for most users.

Method 1: Run the Program as Administrator

  1. Right-click the application or shortcut that is causing the error.
  2. Select Run as administrator from the context menu.
  3. If prompted by UAC, click Yes.
  4. Try the operation again.

This elevates the process to have full administrator privileges, which usually bypasses the permission issue. If the error persists, the problem may be with the folder’s ACL (Access Control List).

Method 2: Take Ownership of the Folder

If you need to modify files in a protected folder, you can take ownership and grant your account full control. Be cautious—only do this on folders you understand, as it can weaken system security.

  1. Right-click the folder and select Properties.
  2. Go to the Security tab and click Advanced.
  3. At the top, click Change next to Owner.
  4. Enter your username (or Administrators) and click Check Names, then OK.
  5. Check the box Replace owner on subcontainers and objects.
  6. Click OK to apply.
  7. Now go back to the Security tab and click Edit.
  8. Select your user or group and check Full control under Allow.
  9. Click OK and try the operation again.

Method 3: Disable UAC Temporarily (Not Recommended)

Disabling UAC can eliminate the error, but it leaves your system more vulnerable. Only do this if you understand the risks and revert it after the operation.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
  3. Find EnableLUA and set its value to 0.
  4. Restart your computer.

After the operation, set it back to 1 and restart again.

Method 4: Use Command Prompt (Admin) for File Operations

If you are copying or moving files, use an elevated Command Prompt instead of File Explorer.

  1. Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Use commands like copy, move, or del to perform the operation.
  3. For example: copy C:\source\file.txt C:\Program Files\destination\

This bypasses the Explorer shell and often works where Explorer fails.

Common Mistakes When Fixing This Error

  • Not running as administrator: Many users assume being an admin is enough, but UAC still blocks non-elevated processes.
  • Modifying permissions on the wrong folder: Make sure you are changing the ACL on the exact folder that is causing the error.
  • Forgetting to replace ownership on subfolders: If you only take ownership of the top folder, subfolders may still be protected.
  • Disabling UAC permanently: This exposes your system to malware and unauthorized changes. Always re-enable it.

When to Use Each Fix

Use the following guide to decide which method fits your situation:

  • Single file copy: Try running the source program as admin first.
  • Modifying system files: Take ownership of the specific folder, not the entire drive.
  • Frequent errors in multiple folders: Check if your user account is a standard user; if so, switch to an admin account.
  • Automated tasks or scripts: Run the script from an elevated Task Scheduler task.

Preventing Future Occurrences

To avoid this error in the future, keep your user files in your user profile folder (e.g., C:\Users\YourName\Documents). Avoid storing personal data in Program Files or Windows folders. If you need to modify system files, always use an elevated editor like Notepad running as admin. Regularly check folder permissions if you share files on a network.

Frequently Asked Questions

Can I ignore this error and continue?

No, the operation will fail. The file will not be copied, moved, or saved. You need to resolve the permission issue to complete the task.

Does this error mean my computer is infected?

No, it is a standard Windows permission error. However, if you see it unexpectedly on folders you normally access, it could indicate a malware infection that has changed permissions. Run a security scan to be safe.

Will taking ownership of a folder break Windows?

Taking ownership of system folders like C:\Windows can cause instability and security issues. Only take ownership of the specific folder you need to modify, and avoid changing permissions on the entire system drive.

Why does the error appear even when I’m the administrator?

Because UAC runs administrator accounts with a filtered token. Unless you explicitly elevate the process, it does not have full admin rights. That is why running as administrator is the first fix.

Does this error occur on Windows 10 and Windows 11?

Yes, both versions have the same UAC and permission model, so the error and fixes are identical.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →