Windows 10 and 11 trigger the “You don’t currently have permission to access this folder” or “Location is not available: Access is denied” error when the NTFS file system detects a mismatch between your active user account’s Security Identifier (SID) and the folder’s Discretionary Access Control List (DACL). This lockout commonly occurs after reinstalling Windows, migrating a secondary SSD or external hard drive to a new PC, upgrading user profiles, or suffering an unexpected power loss that corrupts security descriptors. This guide restores complete read and write access to your locked directories—without modifying or deleting a single byte of your underlying files—by reassigning NTFS ownership, resetting permission inheritance via command-line utilities, clearing read-only system locks, and repairing damaged security metadata.
Primary Causes of the “Access Denied” Folder Error in Windows
Four system-level permission conflicts block File Explorer from reading or modifying directories on an NTFS partition:
- Orphaned Security Identifiers (SIDs): When you reinstall Windows or move a drive to another computer, the folder remains locked to the old installation’s unique cryptographic SID (
S-1-5-21-...), which your new Windows account cannot match even if you use the exact same username. - Broken NTFS Inheritance Flags: Moving folders across partitions or modifying parent directory security rules can sever permission inheritance, stripping the
Authenticated UsersandAdministratorsgroups from child folders. - Explicit Deny Rules and Controlled Folder Access: A single
Denyentry in an Access Control List overrides everyAllowpermission in Windows, while Windows Security Controlled Folder Access blocks unverified apps from modifying protected user libraries. - Corrupted
$SecureMetadata or EFS Locks: Improper drive ejection can corrupt the NTFS$Securedescriptor stream, while files encrypted via the Encrypting File System (EFS) reject access if the original user certificate is missing from the local certificate store.
Method 1: Take Ownership of the Folder via Advanced Security Settings
Why This Works
Every file and directory on an NTFS volume stores an Owner SID inside its security header. Even if a folder strips out all standard read and write permissions, the Windows kernel always permits the designated Owner to rewrite the folder’s Access Control List. Reassigning ownership to your current administrator account and propagating that change to all nested subfolders unlocks the directory structure without altering any file contents.
Step-by-Step Instructions
- Right-click the locked folder in File Explorer, select Properties, and open the Security tab at the top of the dialog box.
- Click the Advanced button near the bottom-right corner to open the Advanced Security Settings window.
- Locate the Owner: line at the top of the window (which often reads Unable to display current owner or shows an unknown
S-1-5-21string) and click the blue Change link next to it. - Type
Administratorsor your exact Windows account username into the Enter the object name to select box, click Check Names to underline and validate the account, and click OK. - Check the box labeled Replace owner on subcontainers and objects directly beneath the newly updated Owner line so ownership applies to every subfolder and file inside.
- Check Replace all child object permission entries with inheritable permission entries from this object at the bottom, click Apply, click Yes on the Windows Security confirmation prompt, and click OK.
How to Verify the Fix
Double-click the previously locked folder in File Explorer to confirm it opens without prompting for administrator elevation. Right-click inside the folder, select New → Text Document, and delete the test file to verify full read and write access.
Method 2: Reset NTFS Access Control Lists via Takeown and Icacls Commands
Why This Works
When a locked directory contains tens of thousands of nested files or deeply nested folder paths, the graphical File Explorer security dialog often freezes or fails with a “Failed to enumerate objects in the container” error. Running the native takeown.exe and icacls.exe utilities from an elevated terminal bypasses graphical shell timeouts, strips corrupted Access Control Entries (ACEs), and forces recursive permission resets directly at the file-system level.
Step-by-Step Instructions
- Press Windows + X and select Terminal (Admin) or Command Prompt (Admin), then click Yes on the User Account Control prompt.
- Locate the exact path of your locked folder (for example,
D:\Backup\WorkFiles) by holding Shift, right-clicking the folder in File Explorer, and selecting Copy as path. - Run
takeown /F "D:\Backup\WorkFiles" /R /D Y(replacing the path with your folder path) to recursively assign ownership of the folder and all nested contents to the active administrator. - Run
icacls "D:\Backup\WorkFiles" /grant Administrators:F /T /C /Qto grant Full Control (F) to the local Administrators group across all subdirectories (/T), continuing past any locked system links (/C). - Run
icacls "D:\Backup\WorkFiles" /reset /T /C /Qto replace any corrupted or explicitDenyentries with clean, default inherited NTFS permissions. - Close the terminal window once the command reports
Successfully processed X files; Failed processing 0 files.
How to Verify the Fix
Run icacls "D:\Backup\WorkFiles" in your elevated terminal and confirm that BUILTIN\Administrators:(OI)(CI)(F) and NT AUTHORITY\SYSTEM:(OI)(CI)(F) appear in the output list. Open the folder in File Explorer and verify all files load cleanly.
Method 3: Enable Permission Inheritance and Remove Explicit Deny Entries
Why This Works
In Windows NTFS architecture, an explicit Deny rule always takes precedence over an Allow rule. If a third-party security tool, malware infection, or misconfigured user profile added a Deny entry—or disabled inheritance on a specific subfolder—taking ownership alone will not let you open the files. Manually removing Deny rules and re-enabling parent inheritance restores standard access rights across the directory tree.
Step-by-Step Instructions
- Right-click the affected folder, select Properties, open the Security tab, and click Advanced.
- Inspect the Permission entries: list in the center pane and look at the Type column for any row labeled Deny.
- Select each Deny entry, click the Remove button below the list, and click Apply.
- Click the Enable inheritance button in the bottom-left corner of the window (if the button reads Disable inheritance, inheritance is already active).
- Click Add below the permission list, click Select a principal, type
Authenticated Users, click Check Names, and click OK. - Check the Full control box under Basic permissions, click OK, check Replace all child object permission entries with inheritable permission entries from this object, and click Apply.
How to Verify the Fix
Click the Effective Access tab at the top of the Advanced Security Settings window, click Select a user, enter your Windows username, and click View effective access. Confirm green checkmarks appear next to Full control, Traverse folder / execute file, and Read attributes.
Method 4: Clear Read-Only System Attributes and Release Locked File Handles
Why This Works
Sometimes Windows displays an “Access Denied” dialog not because of NTFS security permissions, but because a background process holds an exclusive file handle or the directory carries hidden system (+s) and read-only (+r) attributes. Stripping stuck file attributes via attrib.exe and closing active file locks through Resource Monitor releases the directory without requiring a system wipe.
Step-by-Step Instructions
- Press Windows + X, open Terminal (Admin), and run
attrib -r -s -h "D:\Backup\WorkFiles" /S /D(using your exact folder path) to strip Read-Only, System, and Hidden flags from the folder and its contents. - Press Windows + R, type
resmon.exe, and press Enter to launch the Windows Resource Monitor. - Open the CPU tab, expand the Associated Handles section in the lower half of the window, and paste your locked folder’s name into the Search Handles box.
- Right-click any hung third-party application or background process locking your folder path in the search results and select End Process.
- If a stubborn third-party service immediately re-locks the folder, press Windows + R, run
msconfig, open the Boot tab, check Safe boot → Minimal, and click OK to restart into Safe Mode. - Copy or move your unlocked files to a clean directory while inside Safe Mode, then reopen
msconfig, uncheck Safe boot, and reboot into normal Windows.
How to Verify the Fix
Run attrib "D:\Backup\WorkFiles" inside Terminal and confirm no R, S, or H letters appear to the left of the directory path. Rename or move a file inside the folder during a normal Windows session to verify no background handles are blocking access.
Method 5: Authorize Blocked Directories in Windows Controlled Folder Access
Why This Works
When Windows Defender Ransomware Protection (Controlled Folder Access) is enabled, the operating system locks standard user directories—including Documents, Pictures, Videos, and Desktop—against modifications by unauthorized executables. If you receive an “Access Denied” or “File not found” error specifically when saving, exporting, or editing files inside a third-party app, adding that program to the Controlled Folder Access exclusion list resolves the block immediately.
Step-by-Step Instructions
- Press Windows + S, type
Windows Security, and press Enter to launch the security dashboard. - Click Virus & threat protection in the left navigation pane.
- Scroll down to the Ransomware protection section and click Manage ransomware protection.
- Click Block history under Controlled folder access to inspect whether Windows recently blocked a legitimate application from accessing your folder.
- Click Allow an app through Controlled folder access and click Yes on the User Account Control prompt.
- Click Add an allowed app → Recently blocked apps, click the + button next to your trusted software (or browse directly to its
.exefile), and close the window.
How to Verify the Fix
Launch the application that previously failed, open a file inside your protected folder, save a change, and confirm the file updates without triggering a Windows Security block notification.
Method 6: Repair Corrupted Security Descriptors and Check EFS Encryption
Why This Works
If you still encounter “Access Denied” after resetting ownership and DACLs, either the partition’s NTFS $Secure metadata stream has physical sector corruption, or the files are encrypted with the Windows Encrypting File System (EFS). Running Check Disk rebuilds damaged security descriptors and re-links orphaned files without deleting data, while the built-in cipher.exe tool identifies whether you need to import your original .pfx encryption certificate to decrypt the files.
Step-by-Step Instructions
- Press Windows + X, select Terminal (Admin), and run
chkdsk D: /f /x(replacingD:with the drive letter containing the locked folder) to dismount the volume and repair corrupted NTFS security descriptors. - Wait for the scan to verify files, indexes, and security descriptors (
Stage 3: Examining security descriptors), allowing Windows to replace any damaged DACLs with default valid descriptors. - Inspect the locked folder in File Explorer to check if the folder name displays in green text or carries a small yellow padlock icon over the folder thumbnail.
- Run
cipher /c "D:\Backup\WorkFiles"in your elevated terminal to check whether the files are locked by EFS encryption and view the required Certificate thumbprint. - If EFS encryption is active and you have a backup of your encryption key from your old PC, press Windows + R, run
certmgr.msc, right-click Personal → Certificates, select All Tasks → Import, and import your.pfxkey file. - Once the matching certificate is imported into your Personal store, run
cipher /d /s:"D:\Backup\WorkFiles"in Terminal (Admin) to permanently strip EFS encryption from the folder and all nested files.
How to Verify the Fix
Run cipher /c "D:\Backup\WorkFiles" in Terminal and confirm every file lists U (Unencrypted) to the left of its filename. Open the files in their default applications to verify complete data integrity.
Prevention Tips to Avoid Future Folder Permission Lockouts
Following proper storage and permission practices prevents NTFS lockouts when upgrading hardware or reinstalling Windows:
- Format Shared Portable Drives as exFAT: NTFS enforces strict machine-specific SID permissions across computers, so format external USB flash drives and portable backup SSDs as exFAT if you move them between multiple PCs.
- Grant Permissions to “Everyone” Before Reinstalling Windows: Before wiping your boot drive, right-click storage folders on your secondary data drives, open Properties → Security, and add the Everyone group with Full control so your new OS installation can read them immediately.
- Back Up EFS Certificates Immediately: Never enable the Encrypt contents to secure data checkbox in folder properties without immediately running
certmgr.mscto export a password-protected.pfxbackup of your Personal EFS certificate to external media. - Use Public Folders for Multi-Account Sharing: Store files shared between multiple local family or work accounts inside
C:\Users\Publicrather than privateC:\Users\Usernamedirectories to avoid cross-profile SID conflicts.
Frequently Asked Questions (FAQs)
Does resetting NTFS permissions or running takeown delete or corrupt files inside the folder?
No, taking ownership via the Security tab or running takeown and icacls only modifies the 64-kilobyte NTFS security descriptor metadata header attached to each file. The actual binary data clusters stored on your SSD or hard drive remain completely untouched.
Why do I get “Access Denied” even though my account is already a Windows Administrator?
To protect core operating system integrity, Windows runs standard Administrator accounts under a split-token model via User Account Control (UAC). File Explorer runs with standard user tokens by default, and it cannot bypass an NTFS Access Control List owned by TrustedInstaller, SYSTEM, or an orphaned external SID until you explicitly claim ownership or elevate via an administrator terminal.
Why can I take ownership of a parent folder, but individual files inside still say “Access Denied”?
This happens when child files inside the directory had their permission inheritance manually disabled prior to the lockout, causing them to ignore changes applied to the parent folder. Running icacls "C:\Your\Folder\Path" /reset /T /C /Q in an elevated terminal forces every nested file to drop its custom rules and inherit the parent folder’s unlocked permissions.




