Microsoft 提供了多种方法来防止您的文件或数据在Windows中(Windows)被删除、重命名或修改(preventing your files or data from being deleted, renamed or modified),以确保您的信息不会落入坏人之手。
但是,其中一些保护措施可能会失控,导致诸如“您需要权限才能执行此操作”之类的错误。当您尝试打开文件、删除文件夹或运行应用程序时,可能会发生这种情况。有时,无论您是否是管理员, (Administrator)Windows甚至可能会锁定某些任务或操作。
如果您遇到此错误,请了解如何使用本指南中的解决方案进行修复。
“您需要权限才能执行此操作”错误的原因(Causes For The “You Need Permission To Perform This Action” Error)
这个错误没有单一的原因,但最好的部分是它并不总是始终如一地弹出。但是,在某些情况下它似乎更频繁地发生,例如尝试复制文件、更改文件夹/文件名、删除文件(delete a file)或文件夹或安装程序。
理想情况下,此类操作不应该有任何障碍。如果您没有正确的安全权限、错误修改的权限,或者文件夹或文件被系统服务或进程锁定,(file is locked by a system service or process)因为它是Windows操作的必要文件,您最终可能会收到此错误。
该错误也可能是由恶意软件感染或使用某些第三方应用程序引起的。即使您拥有管理员帐户,所有这些都可能令人沮丧,因为您无法创建、修改甚至删除任何文件或文件夹。
如何修复“您需要执行此操作的权限”错误(How To Fix “You need permission to perform this action” Error)
您的安全软件——防病毒软件或防火墙——可能会导致诸如此类的冲突和错误。暂时禁用您的防病毒软件是最好和最安全的测试方法。如果它解决了问题,请咨询您的供应商或切换到更好的防病毒软件选项(better antivirus software options)。
注意(Note):当您的第三方防病毒软件被禁用时,打开内置的Windows 10安全软件(Windows 10)Windows Defender ,以便在您尝试修复此错误时为您的 PC 提供必要的保护。
禁用第三方安全软件(Disable Third-Party Security Software)
禁用防病毒软件的一种方法是使用任务管理器(Task Manager)。同时按CTRL+ALT+DEL键并从蓝色安全选项屏幕中选择任务管理器(Task Manager),或右键单击任务栏并从上下文菜单中选择任务管理器。(Task Manager)
在任务管理器中,单击启动(Startup)选项卡并检查计算机启动时启动的应用程序。选择您的第三方防病毒应用程序,然后单击禁用(Disable)以更改其状态。
对您 PC 上的所有其他第三方防病毒应用程序执行相同操作并重新启动它。检查错误是否消失,如果没有,请尝试下面的下一个修复。如果有帮助,您可以关闭 Windows Defender(turn off Windows Defender)并重新启用防病毒软件。
使用 Windows Defender 运行恶意软件扫描(Run A Malware Scan With Windows Defender)
您的PC 可能感染了病毒或恶意软件(PC could be infected with viruses or malware),导致“您需要权限才能执行此操作”错误。使用Windows Defender(Windows Defender)运行恶意软件扫描将检查计算机是否存在任何此类恶意软件并将其删除,之后您可以检查错误是否消失。
为此,请单击Start > Settings并选择更新和安全(Update & Security)。
单击左侧菜单中的Windows 安全(Windows Security)并选择Virus & Threat Protection。
在新窗口中,单击扫描选项(Scan Options)链接,然后选择全面扫描(Full Scan)。这很可能会找出并清除隐藏在您 PC 中的任何偷偷摸摸的病毒或恶意软件,尽管它比快速扫描需要更长的时间。
如果扫描发现任何威胁,请在扫描完成后采取相应措施,并检查扫描后错误是否消失。
运行 SFC 扫描(Run An SFC Scan)
系统文件检查器(System File Checker)( SFC ) 是一种故障排除工具,可扫描、检测和解决 PC 中的各种系统问题。
通过在搜索框中键入CMD打开提升的命令提示符,然后选择(Command Prompt)Run as Administrator。
输入这个命令:sfc /scannow
扫描完成后,SFC扫描仪将尝试自动修复任何已识别的问题。当您尝试在计算机上执行相同操作时,您可以检查错误是否消失。
将您的帐户添加到管理员组(Add Your Account To The Administrator Group)
如果有多个管理员帐户并且您尝试访问其他管理员的内容,您最终可能会收到“您需要权限才能执行此操作”错误消息。
右键单击开始(Start)并选择计算机管理(Computer Management)。
转到本地用户和组(Local Users and Groups),然后双击用户(Users )文件夹。
(Double-click)在左侧窗格中双击您的帐户。
单击“成员”(Member Of )选项卡上的“添加(Add )”按钮。
在输入要选择(to select)的对象名称(Enter the object names)字段中键入Administrators,然后单击Check Names > OK。选择管理员(Administrators),单击Apply > OK。
一旦您的帐户在管理员组中,请检查执行所需操作时是否仍然出现错误。
Check If The Folders/Files Are Under a Different Admin Account
右键单击Start > Run以打开运行实用程序,键入netplwiz并按Enter。
在新窗口中,您将看到用户帐户及其帐户类型。要更改具有管理员权限的任何其他帐户的帐户类型,请单击用户选项卡,然后在(Users)此计算机的用户(Users of this computer)部分下选择要更改的帐户。
单击属性(Properties)。
单击“组成员身份(Group Membership)”选项卡,然后为用户帐户类型选择“标准”(Standard)或“管理员(Administrator)”。单击(Click) Apply>OK以完成该过程。
再次尝试您想要的操作,看看错误是否消失。如果它没有移动到下一个解决方案。
以安全模式重新启动(Restart In Safe Mode)
以前,Windows 用户按 F8 功能键进入安全模式,但由于在(Safe Mode)Windows 10中删除了 F8 启动菜单以缩短系统启动时间,这种情况发生了变化。您可以在我们关于为什么 F8 在 Windows 10 中无法运行(Why F8 is not working in Windows 10)的指南中了解有关此内容的更多信息,但这里是在安全模式下(Safe Mode)重新启动 PC 的步骤。
单击Start > Power,按住Shift键并单击重新启动(Reboot)以打开故障排除(Troubleshoot )屏幕。
单击高级(Advanced) 选项(options)。
接下来,单击启动设置(Startup Settings)。
选择重新启动(Restart)。
PC 重新启动后,按F4键启用安全模式(Mode),然后再次尝试该操作以检查在此模式下错误是否消失。
Use Unlocker To Delete A Locked Folder/File
如果您尝试打开文件夹并出现此错误,您可以使用免费的Unlocker程序来识别锁定您的文件夹的程序或进程。
注意(Note):安装Unlocker时,当它要求您安装其他程序时,请单击跳过(Skip )几次。
安装 Unlocker,单击Advanced并取消选中Install Delta Toolbar。安装完成后,转到File Explorer中的文件夹,右键单击它并选择Unlocker。您将看到一个弹出窗口,其中列出了锁定文件夹的进程或程序。如果没有,它会告诉你没有任何锁。
如果有列表,您有三个选项:终止进程、解锁特定项目或全部解锁以释放文件夹上的所有锁。
Get Full Control Permissions Over A File/Folder
右键单击(Right-click)要删除或打开的文件或文件夹,然后选择属性。(Properties.)
单击安全(Security )选项卡,单击高级(Advanced)。
在所有者(Owner)旁边,单击更改(Change)。
在输入要选择的对象名称中(Enter the object name to select),输入您的用户帐户名称,然后单击检查名称(Check Names)。
接下来,单击OK并选中Replace owner on subcontainers and objects复选框。
返回到Properties文件夹并单击OK。
如果您想更改权限而不获取文件/文件夹的所有权,请右键单击文件或文件夹,选择属性(Properties)并转到安全(Security)选项卡并单击高级(Advanced)。
在Access列下,检查您的用户帐户是否具有Full Control。
如果没有,或者您的用户帐户不在列表中,请单击添加(Add),然后单击选择主体(Select Principal)链接。
在输入要选择的对象名称(Enter the object name to select)字段中输入您的本地用户名。
单击检查名称(Check names)以验证您的用户帐户名称,然后选择确定(OK)。标记完全控制(Full control)旁边的复选框,以便标记除特殊权限之外的所有操作。
看看您是否能够执行您想要的操作而不会出现错误。
重新安装受影响的应用程序(Reinstall The Affected Application)
如果特定应用程序存在导致此权限错误的权限问题,请重新安装它并查看它是否可以解决问题。
单击Start > Settings > Apps。
找到您要卸载的应用程序,选择它并单击卸载(Uninstall)。卸载后,重新安装应用程序并查看错误是否消失。
如果这些解决方案都不起作用,您可能必须重新安装系统,但只能作为最后的手段,因为此操作会完全清洁您的驱动器。如果您走这条路,请先备份您的个人文件和其他数据。您可以选择其他备份选项,例如云存储、使用外部硬盘驱动器或将文件迁移到另一台计算机。
这些修复中的任何一个是否(Did)有助于解决计算机上的“您需要执行此操作的权限”错误?在下面的评论中告诉我们。
Fix “You need permission to perform this action” Error
Microsoft offers several ways of preventing your files or data from being deleted, renamed or modified in Windows to ensure that your information doesn’t get into the wrong hands.
However, some of these protections can get out of hand, leading to errors such as “You need permission to perform this action”. This can occur when you’re trying to open a file, delete a folder, or run an application. Sometimes Windows may even lock down certain tasks or actions whether you’re an Administrator or not.
If you’ve come across this error, learn how to fix it using the solutions in this guide.
Causes For The “You Need Permission To Perform This Action” Error
There’s no single cause for this error, but the best part is that it doesn’t always pop up consistently. However, there are certain situations when it seems to happen more frequently, such as trying to copy files, change a folder/file name, delete a file or folder, or install a program.
Ideally, such actions shouldn’t have any hitches. If you don’t have the right security permissions, wrongly modified permissions, or the folder or file is locked by a system service or process because it’s an essential file for Windows operations, you could end up getting this error.
The error could also be caused by malware infection or by using certain third-party apps. All these can be frustrating even if you have an administrator account because you can’t create, modify, or even delete any files or folders.
How To Fix “You need permission to perform this action” Error
Your security software – antivirus or firewall – could cause conflicts and errors such as this one. Temporarily disabling your antivirus is the best and safest way of testing this. If it resolves the problem, check with your vendor or switch to better antivirus software options.
Note: While your third-party antivirus software is disabled, turn on Windows Defender, the built-in Windows 10 security software, to give your PC the necessary protection as you try to fix this error.
Disable Third-Party Security Software
One way of disabling your antivirus software is by using the Task Manager. Press CTRL+ALT+DEL keys simultaneously and select Task Manager from the blue security options screen or right-click your taskbar and select Task Manager from the context menu.
In Task Manager, click the Startup tab and check the apps that start when your computer launches. Choose your third-party antivirus app, and click Disable to change its status.
Do the same for every other third-party antivirus app on your PC and restart it. Check whether the error disappears, if not, try the next fix below. If it helps, you can turn off Windows Defender and re-enable your antivirus software.
Run A Malware Scan With Windows Defender
Your PC could be infected with viruses or malware that caused the “You need permission to perform this action” error. Running a malware scan using Windows Defender will check the computer for any such malware and remove them, after which you can check if the error disappears.
To do this, click Start > Settings and select Update & Security.
Click Windows Security from the left menu and select Virus & Threat Protection.
In the new window, click Scan Options link, and select Full Scan. This will most likely fish out and nuke any sneaky viruses or malware hiding in your PC, though it takes longer than a Quick scan.
If the scan found any threats, take the appropriate action after the scan completes, and check whether the error disappears after the scan.
Run An SFC Scan
A System File Checker (SFC) is one of the troubleshooting tools that scans, detects and solves various system issues in your PC.
Open an elevated Command Prompt by typing CMD in the search box and select Run as Administrator.
Enter this command: sfc /scannow
When the scan completes, the SFC scanner will try to fix any identified issues automatically. You can check whether the error disappears when you try performing the same action on your computer.
Add Your Account To The Administrator Group
If there are multiple administrator accounts and you’re trying to access contents of other admins, you could end up getting the “You need permission to perform this action” error message.
Right-click Start and select Computer Management.
Go to Local Users and Groups and double-click the Users folder.
Double-click on your account in the left pane.
Click the Add button on the Member Of tab.
Type Administrators in the Enter the object names to select field, and then click Check Names > OK. Select Administrators, click Apply > OK.
Once your account is in the admins group, check if the error still appears when performing the action you want.
Check If The Folders/Files Are Under a Different Admin Account
Right-click Start > Run to open the Run utility, type netplwiz and press Enter.
In the new window, you’ll see the user accounts and their account types. To change the account type for any other accounts you have with admin privileges, click the Users tab and select the account you want to change under Users of this computer section.
Click Properties.
Click the Group Membership tab and select either Standard or Administrator for the type of user account. Click Apply>OK to finish the process.
Try the action you wanted again and see if the error disappears. If it doesn’t move to the next solution.
Restart In Safe Mode
Previously, Windows users pressed the F8 function key to enter Safe Mode, but that changed because the F8 boot menu was removed in Windows 10 to improve system boot time. You can learn more about this in our guide on Why F8 is not working in Windows 10, but here are the steps to take to restart your PC in Safe Mode.
Click Start > Power, hold down the Shift key and click Reboot to open the Troubleshoot screen.
Click Advanced options.
Next, click Startup Settings.
Select Restart.
Once your PC reboots, press the F4 key to enable Safe Mode, and then try the action again to check if the error disappears while in this mode.
Use Unlocker To Delete A Locked Folder/File
If you’re trying to open a folder and this error appears, you can use the free Unlocker program to identify the programs or processes that are locking your folder.
Note: When installing Unlocker, click Skip a few times when it asks you to install other programs.
Install Unlocker, click Advanced and uncheck Install Delta Toolbar. Once the installation is complete, go to its folder in File Explorer, right-click on it and select Unlocker. You’ll see a pop-up window with a list of the processes or programs locking the folder. If there aren’t any, it’ll tell you that there aren’t any locks.
If there’s a list, you have three options: kill the process, unlock a particular item, or unlock all to release all the locks on the folder.
Get Full Control Permissions Over A File/Folder
Right-click on the file or folder you want to delete or open and select Properties.
Click the Security tab, click Advanced.
Next to Owner, click Change.
In the Enter the object name to select, type your user account name and click Check Names.
Next, click OK and check the Replace owner on subcontainers and objects checkbox.
Go back to the Properties folder and click OK.
If you want to change permissions without taking ownership of the file/folder, right-click the file or folder, select Properties and go to the Security tab and click Advanced.
Under the Access column, check if your user account has Full Control.
If not, or if your user account isn’t on the list, click Add and then click Select Principal link.
Type your local username in the Enter the object name to select field.
Click Check names to validate your user account name and select OK. Mark the checkbox next to Full control so that every action except Special permission is marked.
See if you’re able to perform the action you wanted without the error showing up.
Reinstall The Affected Application
If a particular app has permission issues that causes this permissions error, reinstall it and see if it resolves the issue.
Click Start > Settings > Apps.
Find the app you want to uninstall, select it and click Uninstall. Once uninstalled, re-install the app and see if the error disappears.
If none of these solutions work, you may have to do a clean reinstall of your system but only as a last resort because this action fully cleans your drive. If you go this route, back up your personal files and other data first. You can choose other backup options such as cloud storage, using an external hard drive or migrating your files to a different computer.
Did any of these fixes help resolve the “You need permission to perform this action” error on your computer? Let us know in a comment below.