If you see an “Access Denied” error when opening a folder in Windows, it usually means your user account lacks the required NTFS permissions or the folder is owned by another account. You can fix it by taking ownership of the folder and granting yourself full control, a process that takes about five minutes and works on Windows 10 and 11.
Why Windows Shows “Access Denied”
Windows protects folders using two overlapping systems: NTFS permissions (which define exactly who can read, write, or modify files) and the folder’s owner (the account that has the right to change those permissions). When you try to open a folder and get “Access Denied,” it almost always means one of three things:
- Your account is not listed in the folder’s permissions, and the “Everyone” group was removed.
- The folder is owned by another user (like an old profile or the built-in “Administrator” account), and the owner did not grant you access.
- The folder is encrypted with EFS (Encrypting File System) or locked by a system process, which is rarer.
This commonly happens after a Windows upgrade, when you move a hard drive from another computer, or when you restore files from a backup that was created under a different user account.
Before You Change Permissions
Changing folder permissions is safe if you own the computer, but it can break things if you do it to system folders like C:\Windows or C:\Program Files. Those folders are intentionally locked to prevent accidental damage. Only apply the fix to user-created folders, external drives, or folders you know you should have access to.
Also, if the folder is on a network share, the problem might be on the server side. Check with the network administrator before modifying local permissions. And if the folder is currently in use by another program, close that program first—Windows will not let you take ownership of a locked file.
How to Take Ownership and Fix Access
Here is the standard method that works in Windows 10 and 11. It uses the built-in icacls command, which is more reliable than the GUI for stubborn folders.
- Right-click the folder and select Properties.
- Go to the Security tab and click Advanced.
- At the top, next to “Owner,” click Change.
- Type your Windows username (or
Administratorsfor full admin rights) and click Check Names, then OK. - Check the box Replace owner on subcontainers and objects and click OK.
- Back in the Security tab, click Edit, select your user, and check Full control under Allow.
- Click OK and try opening the folder again.
If the GUI method fails (it sometimes does on system folders), open Command Prompt as Administrator and run:
takeown /f "C:\path\to\folder" /r /d y icacls "C:\path\to\folder" /grant "%USERNAME%":(OI)(CI)F /T
The first command makes you the owner of every file in the folder; the second gives you full control. Replace the path with your actual folder path.
What If You Still Get “Access Denied”?
If you still see the error after taking ownership, try these in order:
- Check if the folder is read-only. Right-click the folder, go to Properties, and uncheck Read-only if it is checked. Note that Windows sometimes shows this as a filled square, which is normal for folders.
- Disable Controlled Folder Access. This Windows Security feature can block apps from modifying protected folders. Go to Windows Security → Virus & threat protection → Ransomware protection and turn off Controlled folder access temporarily to test.
- Boot into Safe Mode. Some third-party security software locks folders. Safe mode loads only essential drivers, so if you can open the folder there, the culprit is a background app.
- Check for disk errors. Run
chkdsk /fon the drive in an elevated Command Prompt. Corrupted file system structures can cause false access errors.
Common Misconception: “Run as Administrator” Fixes It
Many users think that running the program as Administrator will bypass the error. That is only partially true. Administrator accounts have a higher privilege level, but NTFS permissions are separate from user rights. Even an Administrator can be denied access if the folder’s ACL explicitly denies that account. The only reliable fix is to change the folder’s owner and permissions, as described above.
Another myth is that you need to disable User Account Control (UAC) to fix this. UAC controls how programs request elevation, not file permissions. Disabling it weakens security and does not help with “Access Denied” errors on folders.
When to Use the Advanced Security Dialog Instead
The Advanced Security Settings window (the one you open by clicking “Advanced” on the Security tab) gives you more control. You can:
- View the exact permission entries for each user.
- Add a new user with specific permissions (e.g., “Read & execute” only).
- Enable Replace all child object permission entries to reset permissions for all subfolders.
- Enable Disable inheritance to stop the folder from inheriting permissions from its parent.
Use this dialog when you need to give access to another user (like a family member) without giving them full ownership. It is also the place to remove an old user account’s permissions that might be causing conflicts.
What About External Drives and Old Backups?
If you connect an external hard drive that was used on another Windows PC, you will often see “Access Denied” because the folder owner is a SID (Security Identifier) that does not exist on your current system. The takeown and icacls commands work perfectly here. Just be aware that the process can take a long time on a large drive, and it will permanently change the permissions—so if you need to preserve the original ACL, make a backup first.
For files restored from a cloud backup or an old Windows installation, the same fix applies. The folder might also be marked as “Encrypted” in the Properties dialog. If so, you will need the original encryption certificate to open it; taking ownership will not help. That is a separate issue.
Frequently Asked Questions
Why do I get “Access Denied” even though I am the administrator?
Being an administrator does not automatically grant you access to every folder. NTFS permissions are applied to the user account, not the group. If the folder’s ACL does not include your account or the Administrators group, you are denied. Taking ownership is the correct fix.
Is it safe to take ownership of the entire C: drive?
No. Taking ownership of system folders like C:\Windows can break Windows updates and security features. Only take ownership of specific user folders or external drives. If you accidentally did it to the whole drive, you can restore default permissions using the icacls command with the /reset switch, but that is a last resort.
Will this fix work on Windows 7 or 8?
Yes, the same steps work on Windows 7, 8, and 8.1. The GUI looks slightly different, but the Security tab and icacls command are identical. On Windows 7, you may need to click “Advanced” and then “Owner” tab separately.
What if the folder is locked by another program?
If a program is using a file inside the folder, Windows will not let you change permissions. Close all programs that might be using the folder, or use the handle.exe tool from Sysinternals to find which process has it open.
Can I prevent this error from happening again?
Yes, after you fix the permissions, you can set the folder’s owner to Administrators and grant Users read/write access. That way, any future user account on the same PC will have access. Also avoid moving folders from another computer without first resetting permissions.
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
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- Factory Reset on Samsung Galaxy: What It Erases