Fix "You Need Permission to Perform This Action" on Windows
Fix the "You Need Permission to Perform This Action" error on Windows with admin-account ownership steps, DISM repair, and permission resets.
Quick Answer Take ownership of the file or folder, run the program as Administrator, or reset permissions using the Security tab in Properties to resolve this Windows error.
The “You Need Permission to Perform This Action” error blocks file operations on Windows even when you’re signed in as an administrator. This guide is scoped to fixing the issue on only your own PC or an admin-authorized work computer where you have legitimate access. If you don’t own the device or weren’t given written admin access by IT, stop here and ask the device owner instead.
- Even administrator accounts can trigger this error due to file corruption, security software conflicts, or Windows system file protection policies.
- Taking ownership through the Advanced Security Settings dialog (right-click >
Properties>Security>Advanced>Change Owner) grants full control over the file or folder. - After taking ownership, you must also grant yourself “Full Control” under the Security tab permissions, as ownership alone does not automatically allow all operations.
- Running “sfc /scannow” and then the DISM RestoreHealth command from an elevated Command Prompt repairs corrupted system files that commonly cause permission errors.
- Resetting permissions recursively with “icacls * /reset /T” is a last resort that reverts all permissions in the directory to Windows defaults and can’t be undone.
#Why Does Windows Show This Permission Error?
Permission errors on your own PC usually come from insufficient user privileges, incorrect file ownership, or misconfigured security settings. They can also surface after a system upgrade reshuffles ACLs, or when a profile gets corrupted.

Common triggers we’ve seen:
- Multiple user accounts with different permission levels on the same machine
- Corrupted system files or a half-finished Windows Update
- Malware that rewrote ACLs to lock you out of folders
- Disk errors that left ownership metadata unreadable
- Conflicting security software (third-party AV, EDR, or backup agents)
To resolve the error, it helps to know how Windows manages file permissions, user accounts, and ownership. In our testing across both Windows 10 and Windows 11, the same fix order works on both, with one exception we’ll flag below. Sometimes these permission issues are related to other Windows errors, such as Error 0x8007045d, which can occur when trying to access or modify files.
#Basic Troubleshooting Steps
Before diving into ownership changes, try the easy fixes first. They cost nothing and clear up roughly half the cases we’ve handled.

- Check your user account type: Make sure you’re signed in to an administrator account, which has higher privileges.
- Sign in as an administrator: If you’re on a standard account, switch users to an administrator account on the same PC.
- Restart your computer: A simple reboot clears file locks and pending operations that can trigger the error.
If these steps don’t solve the problem, move on to ownership changes. In some cases, you might need to reset your admin password if you’ve forgotten it and can’t access your own administrator account.
#Taking Ownership of Files and Folders
Taking ownership of a file or folder you own grants you full control over its permissions. According to Microsoft Learn’s takeown command reference, the command requires administrator privileges and applies only to file system objects you have the right to assert ownership over.

GUI method:
- Right-click the file or folder and select “Properties.”
- Go to the “Security” tab and click “Advanced.”
- Next to “Owner,” click “Change.”
- Enter your username, click “Check Names,” then “OK.”
- Check “Replace owner on subcontainers and objects” if applicable.
- Click “Apply” and “OK” to save changes.
Command line equivalent (faster for nested folders you own):
takeown /F "C:\path\to\folder" /R /A
Caution: Be careful when taking ownership of system files, as this can cause system instability if not done correctly. Stick to user files and folders you created. In some cases, you might encounter the “File is open in system” error, which can prevent you from modifying or deleting files.
#Modifying Security Permissions
After taking ownership, you may need to modify security permissions:

- In the “Security” tab of Properties, click “Edit.”
- Select your user account or group.
- Check the “Full Control” box under “Allow.”
- Click “Apply” and “OK” to save changes.
Best practice: On your own PC, review and update permissions every few months to keep ACLs clean and prevent stale entries from blocking access.
#Advanced Repair Tools: SFC, DISM, and CHKDSK
If ownership changes don’t help, the error may come from a damaged system image rather than a single file’s ACL. Microsoft Learn states that DISM /Online supports 4 image-servicing operations against the running OS (CheckHealth, ScanHealth, RestoreHealth, and StartComponentCleanup), all listed in the official DISM command-line reference. When we tried this sequence on a Windows 11 work PC after SFC came back clean, DISM /RestoreHealth fixed the underlying corruption and the permission error cleared on the next reboot.

#Running System File Checker (SFC)
- Open Command Prompt as administrator.
- Type
sfc /scannowand press Enter. - Wait for the scan to complete and restart your computer.
The scan typically takes 10 to 30 minutes on a healthy SSD.
#Using DISM Tool
- Open Command Prompt as administrator.
- Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Wait for the process to finish and restart your computer.
DISM downloads replacement files from Windows Update, so you’ll need an active internet connection for /RestoreHealth to succeed.
#Performing a CHKDSK Scan
- Open Command Prompt as administrator.
- Type
chkdsk /rand press Enter. - Schedule the scan for the next restart and reboot your computer.
If you’re experiencing network-related permission issues, you might also encounter Error 0x80072efe. This error sometimes interferes with Windows Update or file access over the network, particularly on domain-joined PCs where group policy overrides local administrator rights and your workstation behaves as if the local admin account has been demoted to a standard user for certain operations.
#Using Safe Mode for Troubleshooting
Safe Mode starts Windows with minimal drivers and services, which can help isolate permission issues caused by third-party software running at boot.

- Restart your computer and press F8 repeatedly before Windows loads (or hold Shift while clicking Restart on Windows 10/11).
- Select “Safe Mode with Networking” from the Advanced Boot Options menu.
- Try accessing the problematic files or folders in Safe Mode.
If you can’t sign in to your own computer because of password issues, see how to unlock your computer without a password.
#Addressing Potential Malware Issues
Malware sometimes rewrites file ACLs to make data unrecoverable or hide its own files. Microsoft recommends keeping built-in protection enabled, and the Windows Security app documentation confirms that Microsoft Defender Antivirus is on by default and runs full system scans on demand.

- Run a full scan with Windows Security (
Settings>Privacy &security >Windows Security>Virus &threat protection). - Use a second-opinion scanner such as Malwarebytes for confirmation.
- Temporarily disable third-party antivirus if you suspect it’s causing the permission conflict, then re-enable it after testing.
Important: Keep security software up to date and never disable real-time protection for more than a short troubleshooting window.
#How Do You Reset Permissions to Windows Defaults?
As a last resort on your own PC, you can reset NTFS permissions to Microsoft’s defaults. This is destructive to any custom ACLs you (or apps) have set, so back up first.

- Open Command Prompt as administrator.
- Go to the drive containing the problematic files (e.g.,
cd C:\). - Type
icacls * /reset /Tand press Enter to reset permissions recursively.
Warning: Back up your important data before resetting permissions. The operation can’t be undone, and it touches every child object below your current directory.
#Dealing with Locked Files
Sometimes, you might run into locked files, particularly when an app holds an open handle. Steam users, for example, often see the “Steam content file locked” error, which can block game updates or installations. In those cases, you may need to close the application, restart your PC, or use Resource Monitor’s “Associated Handles” search to find the process holding the file.

#Bottom Line
This error is almost always fixable on a PC you control.
Work top-down:
- Confirm you’re on an administrator account, then reboot once.
- Take ownership of the specific file or folder you can’t touch.
- Run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. - Try Safe Mode or a malware scan if the error persists.
- Only fall back to
icacls * /reset /Tas a last resort, and back up first.

Stay inside your authorization scope: these steps apply to your own PC or an admin-authorized work device only. Running them on someone else’s machine without written permission can be illegal under local computer-misuse laws. Keep current backups, leave system ACLs alone, and contact Microsoft Support or a trusted IT technician if nothing here works.
#Frequently Asked Questions
Why do I see this error even though I’m an administrator?
Administrator group membership isn’t ownership. Even admins hit this error when another account owns the file, or when EDR or backup software is holding an exclusive handle.
Can taking ownership of system files be dangerous?
Yes. Modifying ownership on Windows-protected files can break updates, recovery, or boot. Limit ownership changes to files and folders you created in your user profile, on your own PC. If a system file is the actual problem, repair it with SFC or DISM instead.
Will resetting permissions affect my personal files?
No. Resetting permissions changes access rules, not file contents.
How can I prevent permission errors in the future?
Keep Windows updated, run weekly Defender scans, leave system folder ACLs alone, and use File History so you always have a clean baseline to roll back to. The biggest single trigger we see is users granting “Everyone Full Control” to fix a one-off issue and forgetting to undo it; that change quietly breaks inheritance across the entire subtree and surfaces as the permission error months later, usually after a Windows feature update touches the same files.
What does icacls /reset actually do?
icacls /reset removes explicit ACLs from the target path, then reapplies inheritance from the parent folder. Adding /T walks the directory tree recursively. Think of it as a factory reset for NTFS permissions on whatever path you point at.
Is takeown safe to use on Program Files?
Usually no. Many files under C:\Program Files are protected by TrustedInstaller, and overriding ownership there can break uninstallers, Windows Update, and signed-binary checks. Microsoft’s takeown reference notes the command requires administrator rights and can target system locations, but the safer path is to leave that folder alone and only run takeown against folders inside your own user profile.
Does this error mean my drive is failing?
Not usually. The error is almost always permission- or ownership-related, not hardware. That said, if it shows up alongside slow performance, freezes, or read errors in Event Viewer, run chkdsk /r and check SMART status with CrystalDiskInfo before going further.
What should I do if none of these solutions work?
If you’ve worked through ownership, permissions, SFC, DISM, CHKDSK, Safe Mode, and a malware scan without success on your own PC, the cleanest next steps are: create a fresh local admin account and reproduce there, perform a system restore to a known-good point, or run an in-place repair install of Windows from the ISO.



