How to Fix ‘You Need Permission to Perform This Action’ in Windows 11

Attempting to delete a leftover folder, rename an old backup, modify a configuration file, or move directory contents in Windows 11 only to be halted by a File Access Denied dialogue reading “You need permission to perform this action: You require permission from TrustedInstaller (or SYSTEM, or Administrator) to make changes to this file” is a common frustration—even when your user account is already configured as a local administrator. In the Windows NTFS file system, file security is governed by Access Control Lists (ACLs) containing Access Control Entries (ACEs). Windows system files and protected directories are intentionally owned by built-in security principals like TrustedInstaller or SYSTEM to prevent malware or accidental user actions from crippling the operating system. When permissions corrupt, or when migrating files from an old Windows installation, your administrator account is denied access. This guide demonstrates how to take ownership and grant Full Control safely.

Understanding NTFS Ownership and Permission Hierarchies

The permission error occurs when your user Security Identifier (SID) lacks requisite NTFS rights:

  • TrustedInstaller Ownership: Windows operating system files and folders (inside Program Files or Windows) are owned exclusively by the Windows Modules Installer service (TrustedInstaller) to protect system integrity.
  • Orphaned SIDs from Prior Installations: When you connect an external hard drive or SSD from an old PC, the file ownership records point to a user SID that does not exist in your current Windows 11 installation.
  • Inherited Permission Locks: Subfolders configured to block permission inheritance from the parent directory, locking out standard administrator groups.
  • Read-Only and File System Corruption: NTFS metadata errors falsely enforcing write-protection locks on disk sectors.

Method 1: Take Ownership via File Properties Advanced Security

Reassigning file ownership to your local user account allows you to edit NTFS permissions freely.

  1. In File Explorer, right-click the problematic file or folder and select Properties.
  2. Navigate to the Security tab and click the Advanced button near the bottom.
  3. At the top of the Advanced Security Settings window, locate the Owner field (often showing TrustedInstaller or SYSTEM).
  4. Click the blue Change link next to the owner name.
  5. In the object name box, type your active Windows username (or type Administrators) and click Check Names to validate.
  6. Click OK.
  7. If you are taking ownership of a folder, check the box Replace owner on subcontainers and objects that appears beneath the owner line.
  8. Click Apply, then click OK twice to close the properties dialogue.

Method 2: Grant Full Control Permissions to Your User Account

Once you are the owner, you must assign explicit Full Control read/write rights to your account.

  1. Right-click the file or folder again and select Properties > Security tab.
  2. Click the Edit… button to modify permissions.
  3. Select your user account or Administrators from the Group or user names list.
  4. Under the Permissions for Administrators section, check the box next to Full control in the Allow column.
  5. Click Apply and confirm any Windows security warning prompt by clicking Yes.
  6. Click OK. You can now delete, modify, or move the file without encountering permission blocks.

Method 3: Take Ownership Instantly via Command Prompt (takeown & icacls)

For large directories containing thousands of files, Command Prompt executes ownership changes much faster than the GUI.

  1. Press Windows Key + S, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Execute the takeown command to claim ownership of the target directory recursively (replace with your actual folder path):
    takeown /F "C:\TargetFolder" /A /R /D Y
  3. Next, grant full permissions to the local Administrators group using icacls:
    icacls "C:\TargetFolder" /grant administrators:F /T /C
  4. Parameters explained:
    • /R and /T: Recurse through all subdirectories and files.
    • /grant administrators:F: Assigns Full Control access rights.
    • /C: Continues operation even if individual file errors occur.
  5. Once the commands finish, delete or rename your folder in File Explorer.

Method 4: Restart in Safe Mode to Delete Stubborn Files

If background system services are actively using the file and preventing permission overrides, Safe Mode bypasses the lock.

  1. Hold the Shift key and click Start > Power > Restart.
  2. Navigate to Troubleshoot > Advanced options > Startup Settings > Restart.
  3. Press 4 or F4 to boot into Safe Mode.
  4. In Safe Mode, non-essential third-party drivers and services are disabled. Open File Explorer and delete the folder directly.
  5. Restart Windows normally.

Method 5: Exercise Caution with System Protected Folders

Before forcing ownership overrides on system folders like Windows.old or System32, understand the security implications.

  1. Never delete or take ownership of core Windows directories (like C:\Windows\System32) as this will render your PC unbootable.
  2. If you are attempting to clean up Windows.old after an upgrade, use the native Windows Disk Cleanup utility instead:
    • Press Windows Key + R, type cleanmgr, and press Enter.
    • Click Clean up system files.
    • Check Previous Windows installation(s) and click OK to delete safely.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.