To fix the 0x80070522 error in Windows, you need to grant your user account full write permissions to the folder or drive where the error occurs, or temporarily disable User Account Control (UAC) during the operation. This error, which often appears as “A required privilege is not held by the client,” typically happens when Windows blocks a program from writing to a protected location like the Program Files folder or the C: drive root.
What Causes Error 0x80070522?
The 0x80070522 error is a Windows permission and security error. It occurs when a process tries to write to a file system location that requires administrator-level privileges, but the process is running with standard user rights. Even if your account is an administrator, Windows uses User Account Control (UAC) to limit access to protected system areas. When an application attempts to write to a location like C:\Program Files or C:\Windows without the required elevation, Windows returns this error.
Common scenarios include:
- Installing or updating software that tries to write to its installation folder.
- Saving a file directly to the root of the C: drive (e.g.,
C:\file.txt). - Running a script or batch file that creates files in a protected directory.
- Using a program that is not running as administrator but needs to modify system files.
Fix 1: Run the Program as Administrator
The quickest fix is to run the program that triggers the error with administrator privileges. This bypasses the UAC restriction for that specific session.
- Right-click on the program’s shortcut or executable file.
- Select Run as administrator from the context menu.
- If a UAC prompt appears, click Yes.
- Try the operation that previously failed.
If this works, you can make the program always run as administrator by going to its Properties, clicking the Compatibility tab, and checking Run this program as an administrator. Note that this only helps if you are the one launching the program; it won’t help for background services or scheduled tasks.
Fix 2: Grant Full Control to Your User Account
If running as administrator doesn’t help, or if the error occurs when saving files to a specific folder, you can change the folder’s permissions to give your account full control.
- Right-click the folder or drive where the error occurs (e.g.,
C:\Program Files\SomeApp). - Select Properties.
- Go to the Security tab.
- Click Edit (or Advanced then Change permissions).
- Select your user account in the list, or click Add to add it.
- Check the Full control box under Allow.
- Click Apply and OK.
Be careful when changing permissions on system folders like C:\Windows – this can cause instability. Only do this for the specific folder that needs the write access.
Fix 3: Disable User Account Control Temporarily
If the error persists and you are comfortable with a temporary security reduction, you can turn off UAC entirely. This is a more drastic step and should be reversed once the operation is complete.
- Press Windows + R, type
regedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. - Find the EnableLUA value and set it to
0. - Restart your computer.
Alternatively, you can use the slider in Control Panel > User Accounts > Change User Account Control settings and drag it to Never notify. After the fix, set it back to the default level and restart again. This method is not recommended for everyday use because it removes an important security layer.
Fix 4: Use the Built-in Administrator Account
Windows has a hidden built-in Administrator account that has even higher privileges than a normal admin account. You can enable it temporarily and use it to perform the task.
- Open Command Prompt as administrator (right-click Start and select Command Prompt (Admin)).
- Type
net user administrator /active:yesand press Enter. - Log out and log in as Administrator.
- Perform the operation that caused the error.
- When done, disable the account with
net user administrator /active:no.
This account is not password-protected by default, so only enable it if you are in a secure environment and remember to disable it afterward.
Fix 5: Check for Corrupted System Files
If the error occurs across multiple programs or drives, it might be due to corrupted system files. Run the System File Checker (SFC) and DISM tools to repair them.
- Open Command Prompt as administrator.
- Run
sfc /scannowand wait for it to complete. - Then run
DISM /Online /Cleanup-Image /RestoreHealth. - Restart your computer.
These tools scan for and replace damaged Windows files. They can take 15 minutes or more, so be patient.
Frequently Asked Questions
Why do I get 0x80070522 even though I am an administrator?
Being an administrator doesn’t automatically give your programs full access to protected areas. UAC blocks elevated actions unless the program is explicitly run as administrator. This is a security feature to prevent malware from making changes without your knowledge.
Is it safe to disable UAC to fix this error?
Disabling UAC reduces the security of your system because it allows all programs to run with full privileges. It is safer to run the specific program as administrator or change folder permissions instead. If you do disable it, re-enable it as soon as you are done.
Can this error happen on external drives?
Yes, it can happen on any drive if the drive’s file system permissions are set to deny write access to your user account. Right-click the drive in File Explorer, go to Properties > Security, and check if your account has write permission.
Does this error mean my hard drive is failing?
No, 0x80070522 is a permission error, not a hardware error. If your drive were failing, you would likely see different errors like 0x80070057 or I/O device errors. However, if you also notice unusual noises or frequent crashes, it’s worth checking your drive’s health.
Will changing folder permissions break my system?
Changing permissions on the specific folder that needs write access is generally safe. However, granting full control to system folders like C:\Windows can make your system vulnerable to malicious software. Only modify permissions on folders you understand.
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
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide