如果您在尝试更改任何文件、删除或移动任何文件夹或文件时遇到错误消息“您需要执行此操作的权限(You need permission to perform this action)”,那么此错误消息的最可能原因是您的用户帐户没有该文件或文件夹的必要安全权限。有时,当其他程序正在使用您希望修改的文件或文件夹时会发生这种情况,例如您的防病毒软件可能正在扫描文件或文件夹,这就是您无法修改文件的原因。
这些是您在尝试删除或修改 Windows 10 上的文件或文件夹时将面临的一些常见错误:
- 文件访问(File Access)被拒绝:您需要权限才能执行此操作
- 文件夹访问(Folder Access)被拒绝:您需要权限才能执行此操作
- 访问(Access)被拒绝。请联系您的管理员。
- 您当前无权访问此文件夹。
- 外部硬盘驱动器(External Hard Drive)或USB的文件或文件夹访问被拒绝(Folder Access Denied)。
因此,如果您遇到上述错误消息,那么最好等待一段时间或重新启动您的 PC,然后再次尝试以管理员(Administrator)身份更改文件或文件夹。但是即使这样做了,您仍然无法进行更改并面对上述错误消息,请不要担心,因为今天我们将看到如何修复您需要权限才能在Windows 10的帮助下执行此操作错误下面列出的故障排除指南。
修复(Fix)您需要权限才能(Permission)执行此操作错误(Action Error)
确保 创建一个还原点(create a restore point)以防万一出现问题。
方法一:以安全模式重启电脑(Method 1: Restart the PC in Safe mode)
许多用户报告说,在安全模式下重新启动 PC(restarting their PC in Safe mode)已修复错误消息“您需要执行此操作的权限(Permission)”。一旦系统启动到安全模式,您就可以进行更改、修改或删除之前显示错误的文件或文件夹。如果此方法对您不起作用,那么您可以尝试下面列出的其他方法。
方法 2:更改权限(Method 2: Change Permissions)
1.右键单击(Right-click on the file or folder)显示上述错误消息的文件或文件夹,然后选择属性。 (Properties. )
2.这里你需要切换到安全部分(Security section )并点击高级(Advanced) 按钮。
3.现在您需要单击文件或文件夹当前所有者旁边的更改链接。(Change)
4. 然后再次单击下一个屏幕上的高级(Advanced)按钮。
5.接下来,您需要单击Find Now,它将在同一屏幕上填充一些选项。现在从列表中选择所需的用户帐户(desired user account)并单击确定,如下图所示。
注意:(Note:)您可以选择哪个组应该在您的计算机上拥有完整的文件权限,它可以是您的用户帐户或 PC 上的每个人。
6.一旦您选择了用户帐户,然后单击“确定( OK)” ,它将带您返回“高级安全设置”(Advanced Security Settings)窗口。
7.现在在“高级安全设置(Advanced Security Setting)”窗口中,您需要选中(checkmark)“替换子容器和对象的所有者(Replace owner on subcontainers and objects)”和“将所有子对象权限条目替换为此对象的可继承权限条目(Replace all child object permissions entries with inheritable permission entries from this object)”。完成此步骤后,您只需单击应用(Apply),然后单击确定。(OK.)
8.然后单击确定(OK)并再次打开高级安全设置窗口。(Open Advanced Security Settings window.)
9.单击添加(Add),然后单击选择主体。(Select a principal.)
10.再次添加您的用户帐户(add your user account),然后单击确定。
11. 设置主体后,将类型设置为允许。(Type to be Allow.)
12.确保选中完全控制( Full Control),然后单击确定。
13.在“高级安全设置”(Advanced Security Settings)窗口中选中(Checkmark)“将所有后代的所有现有可继承权限替换为此对象的可继承权限”。(Replace all existing inheritable permissions on all descendants with inheritable permissions from this object)
14.单击应用,然后单击确定。
方法 3:更改文件夹的所有者(Method 3: Change Folder’s Owner)
1.右键单击要修改或删除的特定文件夹或文件并选择属性。(Properties.)
2.转到安全选项卡(Security tab),用户组将出现。
3.从组中选择适当的用户名(在大多数情况下是所有人(Everyone)),然后单击编辑(Edit) 按钮。
6.从每个人的权限列表中 选中完全控制。(checkmark Full Control.)
7.单击 确定(OK) 按钮。
如果您找不到所有人或任何其他用户组,请按照以下步骤操作:
1.右键单击(Right-click on the file or folder)显示上述错误消息的文件或文件夹,然后选择属性。 (Properties. )
2.在这里您需要切换到安全部分(Security section ),然后单击添加(Add) 按钮。
3.单击选择用户或组窗口上的高级。(Advanced)
4.然后单击立即查找(Find Now)并选择您的管理员帐户(select your administrator account ),然后单击确定。
5.再次单击确定将您的管理员帐户添加到所有者组。(administrator account to the Owner group.)
6.现在在权限(Permissions)窗口中选择您的管理员帐户(select your administrator account),然后确保选中完全控制(允许)。(Full Control (Allow).)
7.单击应用,然后单击确定。
现在再次尝试修改或删除文件夹,这一次您将不会遇到错误消息“您需要执行此操作的权限(You Need Permission To Perform This Action)”。
方法 4:使用命令提示符删除文件夹(Method 4: Delete the folder using Command Prompt)
1.按Windows Key + X然后选择命令提示符(管理员)(Command Prompt (Admin))或使用本指南打开提升的命令提示符(this guide to open an elevated command prompt)。
2.要获得删除文件或文件夹的所有权权限并修复文件权限错误(fixing File permission error),您需要输入以下命令并按Enter:
takeown /F “Drive_Name:_Full_Path_of_Folder_Name” /r /d y
注意:将“Drive_Name:_Full_Path_of_Folder_Name”替换为您要删除的文件或文件夹的实际完整路径。
3.现在您需要将文件或文件夹的完全控制权提供给管理员:
icacls “Drive_Name:_Full_Path_of_Folder_Name” /grant Administrators:F /t
4.最后使用以下命令删除文件夹:
rd “Drive_Name:_Full_Path_of_Folder_Name” /S /Q
上述命令完成后,文件或文件夹将被成功删除。 ( the file or folder will be successfully deleted. )
方法5:使用Unlocker删除锁定的文件或文件夹(Method 5: Use Unlocker to delete the locked file or folder)
Unlocker是一个免费程序,它可以很好地告诉您当前哪些程序或进程正在对文件夹进行锁定。
1.安装Unlocker(Unlocker)会在您的右键菜单中添加一个选项。转到文件夹,然后右键单击并选择 Unlocker。(choose Unlocker.)
2.现在它会给你一个在文件夹上有锁的进程或程序的列表。(locks on the folder.)
3.可能列出了许多进程或程序,因此您可以杀死进程,解锁或全部解锁。(kill the processes, unlock or unlock all.)
4.点击全部解锁(unlock all)后,您的文件夹必须解锁,您可以删除或修改它。
这肯定会帮助您修复您需要权限才能执行此操作错误(Fix You Need Permission To Perform This Action error),但如果您仍然卡住,请继续。
方法 6:使用 MoveOnBoot(Method 6: Use MoveOnBoot)
如果上述方法都不起作用,您可以尝试在Windows完全启动之前删除文件。实际上,这可以使用一个名为MoveOnBoot 的程序来完成。(MoveOnBoot.)您只需要安装MoveOnBoot,告诉它您要删除哪些文件或文件夹无法删除,然后重新启动 PC。(restart the PC.)
受到推崇的:(Recommended:)
我希望上述步骤对您有所帮助,现在您可以轻松修复您需要权限才能执行此操作错误,(Fix You Need Permission To Perform This Action Error,)但如果您对本教程仍有任何疑问,请随时在评论部分提出。
Fix You Need Permission To Perform This Action Error
If you are facіng the error message “You need permission to perform this action” while trying to make changes to any file, delete or move any folder or file then the most likely cause for this error message is that your user account doesn’t have necessary security permissions for that file or folder. Sometimes this happens when some other program is using the file or folder which you wish to modify such as your antivirus software might be scanning the files or folders and that’s why you are not able to modify the file.
These are some common errors which you will be facing while trying to delete or modify files or folders on Windows 10:
- File Access Denied: You need permission to perform this action
- Folder Access Denied: You need permission to perform this action
- Access denied. Contact your administrator.
- You don’t currently have permission to access this folder.
- File or Folder Access Denied for External Hard Drive or USB.
So if you’re facing the above error message then it is best to wait for some time or restart your PC and again try to make changes to the file or folder as an Administrator. But even after doing so you’re still unable to make changes and facing the above error message then don’t worry as today we are going to see how you can fix You need permission to perform this action error on Windows 10 with the help of the below-listed troubleshooting guide.
Fix You Need Permission To Perform This Action Error
Make sure to create a restore point just in case something goes wrong.
Method 1: Restart the PC in Safe mode
Many users have reported that restarting their PC in Safe mode has fixed the error message “You Need Permission To Perform This Action”. Once the system is booted into safe mode you would be able to make changes, modify or delete the file or folder which earlier was showing the error. If this method doesn’t work for you then you can try other methods listed below.
Method 2: Change Permissions
1.Right-click on the file or folder which is showing the above error message then select Properties.
2.Here you need to switch to the Security section and click on the Advanced button.
3.Now you need to click on Change link next to the current owner of the file or folder.
4. Then again click on the Advanced button on the next screen.
5.Next, you need to click on Find Now, it will populate some options on the same screen. Now select the desired user account from the list & click OK as shown in the below image.
Note: You can select which group should have the full file permission on your computer, it can be your user account or Everyone on the PC.
6.Once you select the user account then click OK and it will take you back to the Advanced Security Settings window.
7.Now in the Advanced Security Setting window, you need to checkmark “Replace owner on subcontainers and objects” and “Replace all child object permissions entries with inheritable permission entries from this object”. Once you are done with this step, you just need to click Apply followed by OK.
8.Then click OK and again Open Advanced Security Settings window.
9.Click Add and then click Select a principal.
10.Again add your user account and click OK.
11.Once you had set your principal, set the Type to be Allow.
12.Make sure to checkmark Full Control and then click OK.
13.Checkmark “Replace all existing inheritable permissions on all descendants with inheritable permissions from this object” in the Advanced Security Settings window.
14.Click Apply followed by OK.
Method 3: Change Folder’s Owner
1.Right-click that specific folder or file which you wish to modify or delete & choose Properties.
2.Go to the Security tab and the group of users will appear.
3.Select the appropriate username (in most cases it will be Everyone) from the group and then click on the Edit button.
6.From the list of permissions for Everyone checkmark Full Control.
7.Click on the OK button.
If you can’t find Everyone or any other user group then follow these steps:
1.Right-click on the file or folder which is showing the above error message then select Properties.
2.Here you need to switch to the Security section and click on the Add button.
3.Click on Advanced on Select User or Group window.
4.Then click on Find Now and select your administrator account and click OK.
5.Again click OK to add your administrator account to the Owner group.
6.Now on the Permissions window select your administrator account and then make sure to checkmark Full Control (Allow).
7.Click Apply followed by OK.
Now again try to modify or delete the folder and this time you won’t face the error message “You Need Permission To Perform This Action“.
Method 4: Delete the folder using Command Prompt
1.Press Windows Key + X then select Command Prompt (Admin) or use this guide to open an elevated command prompt.
2.To take the ownership permission for deleting the file or folder and fixing File permission error, you need to enter the following command and hit Enter:
takeown /F “Drive_Name:_Full_Path_of_Folder_Name” /r /d y
Note: Replace “Drive_Name:_Full_Path_of_Folder_Name” with the actual full path of the file or folder which you wish to delete.
3.Now you need to provide the full control of the file or folder to the administrator:
icacls “Drive_Name:_Full_Path_of_Folder_Name” /grant Administrators:F /t
4.Finally delete the folder using this command:
rd “Drive_Name:_Full_Path_of_Folder_Name” /S /Q
As soon as the above command completes, the file or folder will be successfully deleted.
Method 5: Use Unlocker to delete the locked file or folder
Unlocker is a free program that does a great job of telling you which programs or processes are currently holding locks on the folder.
1.Installing Unlocker will add an option to your right-click context menu. Go to the folder, then right-click and choose Unlocker.
2.Now it will give you a list of processes or programs that have locks on the folder.
3.There may be many processes or programs listed, so you can either kill the processes, unlock or unlock all.
4.After clicking unlock all, your folder must be unlocked and you can either delete or modify it.
This will definitely help you Fix You Need Permission To Perform This Action error, but if you’re still stuck then continue.
Method 6: Use MoveOnBoot
If none of the above method work than you can try to delete the files before Windows boots up completely. Actually, this can be done using a program called MoveOnBoot. You just have to install MoveOnBoot, tell it which files or folders you want to delete that you aren’t able to delete and then restart the PC.
Recommended:
I hope the above steps were helpful and now you can easily Fix You Need Permission To Perform This Action Error, but if you still have any questions regarding this tutorial then feel free to ask them in the comment section.