You Need Permission to Perform This Action? How to Fix It

Avatar photo

Why Windows blocks the file or folder

The message you need permission usually appears when you try to delete, rename, or move a file that your account does not own, or that another program still has open. Windows is enforcing the Security permissions on that item, not randomly locking your Documents folder.

Typical causes are:

  • Another app still has the file open. Explorer then reports a permission error that is really a file-in-use problem.
  • Your account is not the owner and does not have Modify or Full control.
  • TrustedInstaller or SYSTEM owns a Windows folder. Those locations are protected on purpose.

The eight fixes below are meant for folders you own, such as a leftover program directory or a copied user folder. Do not take ownership of C:\Windows or C:\Program Files unless you have a specific, documented reason. For system devices, such as a headset or a USB error, use the matching hardware guide instead of changing folder permissions.

A file that is still open can look like a permission error. Close the app first, then change Security settings only if the message remains.

Before you start

Create a restore point before you take ownership or run takeown and icacls. Those commands can change a whole folder tree, and a restore point gives you a way back if you aimed at the wrong path. If you need permission on a personal folder, create the point first.

  1. Press Windows key, type Create a restore point, and open System Properties, or run sysdm.cpl and select System Protection.
  2. Select the system drive, usually C:, then choose Configure.
  3. If protection is off, turn it on and set a modest disk usage amount, then select OK.
  4. Select Create, name the point Before permission changes, and wait until Windows reports that the restore point was created.

Sign in with an administrator account when you can. On a work or school PC, do not take ownership of a shared or policy-managed folder; ask IT instead.

Write down the full path before you run any command. Do not use these steps on C:\Windows or C:\Program Files. Close the obvious app first, then use the Security tab, then take ownership only on a folder you should control.

Have the exact folder name ready, and paste it from Explorer rather than typing it from memory. A typo in takeown can change the wrong tree, which is much harder to undo than a failed delete.

If you only need to read the file, copy it to your Documents folder and work on the copy. You can decide later whether the original must be deleted or left alone.

On a laptop, leave the PC on AC power if you are about to change a large tree. takeown and icacls can take a while on a folder with many small files, and you should let them finish.

Do not download “unlocker” tools from random websites. The Properties window, Safe Mode, and the official takeown and icacls commands are enough for a folder you own. Third-party tools add risk and are harder to review.

If a family member created the folder in another account, sign in as an administrator and decide whether that person still needs it. Taking control of someone else’s profile folder can make their account harder to use later.

When the file action succeeds, stop. Further commands on a parent directory will not make the change more durable, and they increase the chance you touch a path you did not mean to change.

Keep a short note of the path you changed, in case you need to review the Security tab later or explain the change to someone else who uses this PC.

Work through those steps in order. After each change, retry the same file action once before you run a command on the whole tree.

Fixes when you need permission on Windows 11

1. Close the app that is using the file

Before you change security settings, make sure the file is not simply in use.

  1. Close the app that last opened the file, including Word, a game launcher, or a backup tool.
  2. Open Task Manager and end a leftover process for that app if it is still running.
  3. Try the delete or rename again.

If File Explorer itself feels stuck, our File Explorer slow guide can help you restart Explorer, then retry the file action.

Success looks like the delete, rename, or move completing after the app closes. If you need permission still appears, continue with the account and Security tab checks rather than taking ownership yet.

2. Check your account if you see permission to perform this action

A standard account will often see permission to perform this action on folders created by another user.

  1. Open Settings > Accounts and check that your account type is Administrator.
  2. If you have a second admin account, sign in with it and try the action again.
  3. Right-click File Explorer, choose Run as administrator, and retry the delete or move only if you need an elevated window for that folder.

On a work PC, you may not be allowed to change this. Ask IT instead of forcing a local permission change.

If permission to perform this action appears only for a standard account, sign in as an administrator or ask for that right. Do not start takeown until you know the folder is one you should own.

3. Check the Security tab

The Security tab shows who is allowed to modify the folder.

  1. Right-click the file or folder, choose Properties, then open the Security tab.
  2. Select your account and look at the Allow check boxes. You want at least Modify for a folder you should control.
  3. If your account is missing, select Edit, then Add, type your username, choose Check Names, and give it Modify or Full control.
  4. Apply the change and try the action again.

If the Add or Edit buttons are greyed out, you need to take ownership first.

After you grant Modify, retry the action once. If the Security tab already shows Full control and the message remains, the file may still be in use, or you need ownership of a child folder.

4. Take ownership of folder in Properties

Use this on a data folder you own, such as an old user directory, not on a core Windows folder.

  1. In Properties > Security, select Advanced.
  2. Next to Owner, choose Change.
  3. Type your username, select Check Names, then OK.
  4. Tick Replace owner on subcontainers and objects, then Apply.
  5. Back on the Security page, add your account with Full control, and tick Replace all child object permission entries only if you also want the files inside to inherit that change.

After you take ownership of folder contents, retry the delete or move. If Windows reports some files were skipped, repeat the owner change or use the command line in Fix 6.

Take ownership only on the data folder you intend to clean up. If Windows warns that some objects could not be changed, note those paths and continue with takeown on that tree, not on a parent Windows directory.

5. Fix folder access denied on a copied or leftover directory

Folder access denied is common after you copy a folder from another PC, restore a backup, or uninstall a program that left files behind.

  1. Take ownership as in Fix 4, then grant your account Full control.
  2. If a single subfolder still fails, open its Security tab and repeat the owner change there.
  3. Restart the PC and try again, in case a leftover process still has a handle open.

If the folder sits on a USB drive that Windows barely recognizes, fix the device first. Our guides to USB headset Code 10 and device descriptor request failed are for hardware errors, but a failing drive can also produce access denied messages.

A folder access denied message on a copied user directory is expected until you take ownership of that tree. Do this on the copied folder, then grant your account Full control, rather than changing the original profile if it still belongs to someone else.

6. Use takeown and icacls in an administrator prompt

The command line can fix a tree of files that the Properties window only partly updates. Microsoft documents the commands in takeown and icacls.

  1. Search for cmd, then choose Run as administrator.
  2. Run the following, replacing the path with your folder:
takeown /f "C:\Path\To\Folder" /r /d y
icacls "C:\Path\To\Folder" /grant "%USERNAME%":F /t /c
  1. Try the file action again in Explorer.

/r and /t apply the change to subfolders. Use this only on the folder you intend to change. A typo in the path can grant control in the wrong place.

Copy the path from Explorer’s address bar into the command so you do not mistype it. After takeown and icacls finish, retry the file action in Explorer before you run the commands a second time.

7. When you need permission from TrustedInstaller

If the owner is TrustedInstaller, you are looking at a protected Windows component. A request for permission from TrustedInstaller on a system file should be treated carefully.

  1. Confirm the path. If it is under C:\Windows, C:\Program Files, or another system location, stop and use Settings > Apps or an official uninstall method instead of deleting the file by hand.
  2. If this is a leftover folder from an app you already uninstalled, and it is not inside Windows, you can take ownership as in Fixes 4 and 6, then delete it.
  3. Do not disable TrustedInstaller or change the TrustedInstaller account itself.

Windows uses TrustedInstaller to protect system files from accidental or malware-driven changes. Overriding it on core files can break updates and apps.

If you need permission from TrustedInstaller on a path under Windows or Program Files, stop. Use Settings > Apps or an official uninstall. Taking ownership there is not a cleanup shortcut.

8. Retry in Safe Mode

If a background program keeps locking the folder, a clean boot into Safe Mode can let you finish the change.

  1. Open Settings > System > Recovery, then under Advanced startup select Restart now.
  2. Go to Troubleshoot > Advanced options > Startup Settings > Restart, and press 4 or F4 for Safe Mode.
  3. Try the delete, rename, or permission change again, then restart normally.

Safe Mode also helps when Explorer was holding the folder open on the normal desktop.

After Safe Mode, restart normally and confirm that the folder still behaves as you expect. If you need permission only when a backup tool is running, pause that tool on a normal desktop rather than changing system ownership.

If the permission error remains: deeper repair

If closing the app, the Security tab, and a careful ownership change have already been tried, look for a process or a policy that is putting the denial back. If folder access denied returns after a reboot, a startup tool may be locking the path.

  1. Press Windows key, type Event Viewer, and open it.
  2. Check Windows Logs > Security and Windows Logs > Application around the time of the error.
  3. Look for sharing, antivirus, or Group Policy errors, then pause or ask about the named item.

A clean boot can show whether a backup or security tool is locking the folder at sign-in.

  1. Press Windows key + R, type msconfig, and press Enter.
  2. On the Services tab, select Hide all Microsoft services, then Disable all for the test only.
  3. On the Startup tab, open Task Manager and disable non-Microsoft startup apps.
  4. Restart, then retry the file action before you open the usual apps.
  5. When you finish, open System Configuration, choose Normal startup, and restart.

If you need permission only in one account, take ownership from a second local administrator, or copy the files out and work on the copy. An in-place repair of Windows 11 with official Microsoft installation media can restore a damaged Security tab if Properties will not open, but it will not grant you a work folder you are not allowed to own. Back up first if you go that route, and do not use repair as a substitute for a correct path in takeown.

Quick reference

What you seeTry this first
One file will not delete, and an app was just using itClose the app, then retry (Fix 1)
You can open Properties but cannot change SecurityTake ownership, then grant Full control (Fixes 4 and 6)
Access denied on a copied user folderTake ownership of the whole tree with takeown and icacls (Fixes 5 and 6)
The owner is TrustedInstaller on a Windows pathDo not take ownership of system files; use Apps or an official uninstall (Fix 7)
Edit is greyed out on the Security tabTake ownership first, then grant Modify (Fixes 3 and 4)
Some files in the tree were skippedRepeat takeown and icacls on that path only (Fix 6)
The lock returns when a backup tool is runningPause the tool, or retry in Safe Mode (Fixes 1 and 8)

FAQ

Is this message always a permissions problem?

No. A file in use can produce a similar error. Close the app first, then change Security settings only if the message remains.

Is it safe to take ownership of any folder?

No. It is reasonable for a folder you created, a leftover program directory, or an old user profile you are cleaning up. It is not reasonable for C:\Windows or other system locations. Use Fix 4 to take ownership of folder data you should control, and skip system paths.

Why does TrustedInstaller own so many files?

Microsoft ships Windows files under that official trusted installer identity so they cannot be changed casually. That protection is intentional. A prompt for permission from TrustedInstaller on a Windows file is a reason to stop, not to run takeown.

Do I need both takeown and icacls?

Usually, yes, if the graphical method failed. takeown changes the owner, and icacls grants your account Full control. Ownership alone does not always add the permission you need.

Why do I still see permission to perform this action after I changed the Security tab?

The file may still be open, or a child item may have a different owner. Close the app, restart Explorer, and take ownership of the remaining item only if it is a folder you should control. If permission to perform this action remains on one file, change that file only.

What should I do if folder access denied appears on a USB drive?

Check the drive connection first, then take ownership only of the copied folder on that drive. If the USB device itself is failing, fix the hardware before you run takeown. A folder access denied alert on a healthy USB stick usually needs ownership of that copied folder, not of the drive.

Can I ignore the error and keep using the file?

If you only need to read the file, you can often copy it to your Documents folder and work on the copy. You still need permission to delete or replace the original.

Sources

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Windows Terminal Won’t Open on Windows 11? How to Fix It

Next Post

Battery Icon Missing From the Windows 11 Taskbar? How to Fix It

Related Posts