How to Fix Access Denied Errors in Windows
In this article
Access denied errors in Windows mean your account does not have the permission the action requires, or the file or folder is locked by another process or by the system itself. The quickest fix is usually to take ownership of the item and grant your account full control, then retry the action. If that fails, the cause is often a read-only attribute, an encryption or compression conflict, or a policy set by your organization. Work through the steps below in order: start with the simplest permission check, then move to ownership and attributes, and only then consider deeper system changes. Menu labels can differ slightly between Windows versions, editions, and regions, so if a label does not match exactly, look for the closest equivalent.
What You'll Need
- An administrator account on the PC (standard accounts cannot change permissions on protected locations).
- The exact path of the file or folder that is being denied, copied from the address bar.
- Patience to restart the PC once, because a restart clears most file locks.
Step-by-Step
- Confirm the error is permission-based, not a lock. Close every program that might have the file open, including Explorer windows, Office apps, cloud sync clients, and antivirus scans. Then restart the PC and try the action again. A restart releases handles held by background processes and fixes a surprising share of access denied messages.
- Check the file or folder attributes. Right-click the item and choose Properties. On the General tab, look at the Attributes line. If Read-only is checked, clear it and click Apply. If the item is on a network share, the read-only box may be a tri-state square that cannot be changed locally; in that case the permission is set on the server and must be changed there.
- Open the Security tab and inspect your account. In the same Properties window, click the Security tab, then click Edit. Select your user account in the list and look at the Permissions box. If Full control or Modify is not checked under Allow, check it and click Apply. If your account is not listed, click Add, type your account name, click Check Names, then OK, and grant Full control.
- Take ownership if you still cannot change permissions. On the Security tab, click Advanced. At the top, the Owner line shows who currently owns the item. Click Change next to the owner, type your account name, click Check Names, then OK. If you want to apply this to everything inside the folder, tick Replace owner on subcontainers and objects before clicking Apply. Close the dialogs and retry.
- Replace the permission entries on the folder tree. In the Advanced Security Settings window, tick Replace all child object permission entries with inheritable permission entries from this object, then click Apply and confirm. This resets inherited permissions so that files inside the folder match the folder itself, which fixes many cases where one nested file has broken inheritance.
- Check whether the item is encrypted or compressed. On the General tab, click Advanced. If Encrypt contents to secure data is ticked, only the account that encrypted the file can normally open it. If you did not encrypt it, do not clear the box blindly, because that decrypts the file. Instead, sign in with the account that encrypted it or restore the file from a backup. The Compress contents to save disk space option is safe to toggle.
- Try the built-in Administrator context for system locations. Some protected folders such as Program Files, Windows, and System Volume Information are owned by TrustedInstaller and resist normal ownership changes. Do not take ownership of these unless you have a specific reason; instead, run the app or installer as administrator by right-clicking it and choosing Run as administrator. For system files, use the official tool that owns them rather than changing permissions by hand.
- Check Group Policy or organizational management. On a work or school PC, permissions and some settings are controlled centrally. If the Security tab is missing entirely, or the Edit button is greyed out, the device is managed and you cannot override it locally. Contact your IT administrator with the exact path and the exact error text.
- Verify the drive and file system are healthy. If access denied appears on many files at once, run a check on the drive. Open File Explorer, right-click the drive, choose Properties, open the Tools tab, and click Check under Error checking. A failing drive or a corrupted file system can produce permission errors that no amount of clicking will fix.
- Test with a second account. Create a local administrator account and sign in with it. If the file opens normally there, the problem is specific to your user profile, and the practical fix is to copy your data to the new profile rather than repair the old one.
Common Mistakes
- Taking ownership of whole system folders. Changing the owner of Windows or Program Files can break updates and security. Fix the specific file, not the whole tree.
- Granting Everyone full control. It is tempting and it works, but it removes the protection that stops other accounts and malware from modifying the file. Grant your own account instead.
- Ignoring inheritance. Editing permissions on a file inside a folder often fails because the file inherits from the parent. Change the parent, or disable inheritance deliberately on the child.
- Clearing the encryption box to make a file open. That decrypts the file permanently and can expose sensitive data. Only the encrypting account should manage that setting.
- Assuming every access denied is a permissions problem. A file open in another program, a disconnected network drive, or a full disk can all produce the same message.
Tips
- Copy the full path from the address bar before you start, so you can paste it into dialogs and error reports.
- Use the Check Names button whenever you type an account name; it confirms the account exists before you apply changes.
- Note what you changed. If a later problem appears, you can reverse a specific permission edit instead of guessing.
- Keep a backup of important files before changing ownership or permissions on a folder tree.
- For files on a USB drive or memory card, check the drive's own permissions and whether it is write-protected by a physical switch.
Troubleshooting
If the Security tab is missing or the Edit button is greyed out, the item is on a managed device or a network location where local changes are blocked; contact the administrator. If you can change permissions but the error returns after a restart, a sync client or backup tool is likely resetting them, so pause those tools and retry. If the error appears only when saving from one specific program, check that program's own settings and whether it is running as administrator. If the drive shows errors or the problem spreads to new files, back up your data immediately and check the drive's health before doing anything else. If you cannot open a file at all and it is encrypted, do not delete it; restore it from backup or sign in with the original account.
Frequently Asked Questions
Why does Windows say access denied when I am the administrator?
Being an administrator does not automatically grant access to every file. Some system locations are owned by TrustedInstaller, and User Account Control runs most programs with standard rights until you approve elevation. Taking ownership of the specific item, or running the program as administrator, resolves most of these cases.
Will taking ownership damage my PC?
Not for a personal file or folder, but changing ownership of system folders can break Windows features and updates. Limit ownership changes to the item you actually need to use.
Why can I open a file but not save changes to it?
That pattern usually means you have Read permission but not Modify or Write. Open the Security tab, select your account, and grant Modify or Full control.
Does this work the same on Windows 10 and Windows 11?
The Properties, Security, and Advanced Security Settings dialogs are essentially the same in both, though wording and layout can vary slightly by version and edition.
Can I fix access denied on a work laptop myself?
Usually not. Work and school devices are managed centrally, and permission changes are blocked by policy. Send your IT administrator the exact path and error message.
What if the file is on a network drive?
Permissions for network files are set on the server, not on your PC. Your local Security tab may show limited options. Ask whoever manages the share to grant your account access.