🚀 NEW in v2.4.29: 35+ Speed Optimizations added today!Download Now →

Home/Fix/File or Folder Permissions Broken — Access Denied Everywhere

How to Fix File or Folder Permissions Broken — Access Denied Everywhere on Windows

Getting "Access Denied" on your own files, can't change permissions, or ownership messed up after Windows reinstall? Fix file permissions on Windows.

Symptoms

You might be experiencing this problem if you notice:

  • "Access is denied" when opening files you own
  • Can't delete, rename, or move files even as administrator
  • Permissions tab shows unknown SIDs (S-1-5-21-...) instead of usernames
  • After reinstall: can't access files from old Windows installation
  • "You need permission to perform this action" on your own drives
  • Entire drive or folder tree has wrong permissions

Common Causes

  • File ownership belongs to an old/deleted user account
  • Permissions inherited incorrectly from parent folder
  • NTFS permissions corrupted
  • Windows reinstall created new user SID — old SID no longer valid
  • Malware or security software locked down permissions
  • TrustedInstaller owns system files — can't modify without ownership change

Solutions

Solution 1: Take Ownership Recursively

  1. 1For a single folder and all contents:
  2. 2CMD as Administrator:
  3. 3takeown /f "C:\path\to\folder" /r /d y
  4. 4icacls "C:\path\to\folder" /grant %username%:F /t
  5. 5/r = recursive, /t = all subfolders and files
  6. 6This makes you the owner and grants full control
  7. 7For entire drive: takeown /f D:\ /r /d y

Solution 2: Reset Permissions to Defaults

  1. 1If a folder has completely broken permissions:
  2. 2CMD as Administrator:
  3. 3icacls "C:\path\to\folder" /reset /t /c
  4. 4This resets to inherited permissions from parent
  5. 5For system folders (Windows, Program Files):
  6. 6DO NOT reset these — they have specific permissions by design
  7. 7Instead: sfc /scannow will restore correct system folder permissions

Solution 3: Fix After Windows Reinstall

  1. 1Old files show "S-1-5-21-..." instead of username:
  2. 2This is the old user SID — no longer exists on the new install
  3. 3Take ownership: right-click folder → Properties → Security → Advanced
  4. 4Change owner to your current username
  5. 5Check "Replace owner on subcontainers and objects"
  6. 6Apply → then Edit → Add your user → Full Control
  7. 7Bulk fix: takeown /f D:\ /r /d y && icacls D:\ /grant %username%:F /t
FIXES THIS IN 5 MINUTES

Fix File or Folder Permissions Broken — Access Denied Everywhere Automatically

RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.

Download Now - Free Trial

No credit card required • Works on Windows 10 & 11

Automated Repairs for This Issue

Browse More System & Core Features Guides

Share this:XRedditLinkedInEmail