目标文件夹访问被拒绝。需要权限才能执行此操作: (Destination Folder Access Denied. Need Permissions to Perform this Action: )当您尝试将任何文件夹或文件复制或移动到其他位置时,通常会发生错误。(Error)通常,此问题是由于“所有权(Ownership)”不可用而发生的。此错误的根本原因是文件夹或文件的所有权存在于其他用户帐户中。虽然文件夹和文件在您的帐户中可用,但不可进行任何修改。在这种情况下,将所有权更改为您当前的用户帐户可以解决问题。
您很快就会注意到,即使作为管理员,您也无法删除或修改系统文件,这是因为Windows系统文件默认归TrustedInstaller服务所有, (TrustedInstaller)Windows 文件保护(Windows File Protection)将防止它们被覆盖。因此,您将遇到“拒绝访问”错误。
您必须拥有一个文件或文件夹的所有权,这会导致您访问被拒绝错误,以允许您完全控制它,以便您能够删除或修改此项目。执行此操作时,您将替换安全权限以获得访问权限。让我们看看如何修复“目标文件夹访问被拒绝”。需要权限才能执行此操作。(Destination Folder Access Denied. Need Permissions to Perform this Action.’)
修复目标文件夹访问被拒绝错误(Fix Destination Folder Access Denied Error)
方法 1:在命令提示符中获取(Command Prompt)项目(Item)的所有权
1. 右键单击 Windows按钮,然后单击“命令提示符(管理员)(Command Prompt(Admin)) ”。
2.现在假设你想拥有D盘内的一个文件夹Software,它的完整地址是:D:\Software
3. 在 cmd 中输入 takeown /f “文件或文件夹的完整路径”,在我们的例子中是:
takeown /f “D:\Software”
4. 在某些情况下,上面的方法可能不起作用,所以试试这个(包括双引号):
icacls “文件的完整路径” /grant(用户名):F
示例:icacls “D:Software ” /grant aditya:F
5. 将显示成功完成的消息。重启(Restart)。
最后,目标文件夹访问被拒绝错误(Destination Folder Access Denied Error)已修复,如果没有,您可以修改文件/文件夹,然后转到第二种方法。
方法 2:安装获取所有权注册表文件(Take Ownership Registry File)
1. 或者,您可以使用注册表文件节省大量时间:单击此处(Click here)
2.它允许您一键更改文件所有权和访问权限。安装“ InstallTakeOwnership ”并选择文件或文件夹并右键单击“ Take Ownership ”按钮。
3.获得所需文件或文件夹的完全访问权限后,您甚至可以恢复其拥有的默认权限。单击“恢复(Restore)所有权”按钮进行恢复。
就是这样,您已成功获得文件/文件夹的所有权。这将修复目标文件夹访问被拒绝错误(Fix Destination Folder Access Denied Error),但如果您不想使用此脚本,那么您也可以手动获取项目的所有权,只需执行下一步即可。
方法 3:打开网络发现和文件共享(Method 3: Turn On Network Discovery and File Sharing)
默认情况下,在Windows 10中,所有网络都被视为专用网络,除非您在设置时另行指定。
1. 按Windows Key + I打开设置。
2. 在设置下单击网络和 Internet。(Network & Internet.)
3. 点击网络和共享中心。(Network and Sharing Centre.)
4. 现在,单击左窗格中的更改高级共享(Change advanced sharing)设置选项。
5. 确保选择打开网络发现( Turn on network discovery)和打开文件和打印机共享选项(Turn on file and printer sharing is selected),然后单击底部的保存更改按钮。(Save changes)
6. 再次尝试访问之前显示错误“ Destination Folder Access Denied ”的文件或文件夹。
方法 4:手动取得项目的所有权
1. 转到您要删除或修改的文件或文件夹。
For example D:/Software
2. 右键单击文件或文件夹,然后单击“属性(Properties)”。
3.单击(Click)安全(Security)选项卡和高级(Advanced)按钮。
4.单击所有者标签旁边的“更改”选项(您应该记下当前所有者是谁,以便以后可以根据需要将其更改回原来的所有者。)
5.将出现选择用户(Select User)或组(Group)窗口。
6. 通过“高级(Advanced)”按钮选择用户帐户,或者在“输入(Enter)要选择的对象名称”区域中键入您的用户帐户,然后单击“确定”。如果单击高级按钮,则单击“立即查找(Find)”。
7. 在“输入(Enter)要选择的对象名称”中,输入您要授予访问权限的帐户的用户名。输入您当前用户帐户的名称,例如Aditya。
8. (可选)要更改文件夹内所有子文件夹和文件的所有者,请在“高级安全设置”窗口中选中“替换子容器和(Replace owner on subcontainers and )对象的所有者”(objects)复选框。(checkbox)单击确定(Click OK)更改所有权。
9. 现在您需要为您的帐户提供对文件或文件夹的完全访问权限。再次右键单击文件或文件夹,单击属性,(Properties,)单击安全(Security)选项卡,然后单击高级。( Advanced.)
10. 单击添加(Add)按钮。“权限输入”窗口将出现在屏幕上。
11. 点击“ Select a principal ”并选择您的账户。
12. 将权限设置为“完全控制(Full control)”,然后单击“确定”。
13. (可选)单击“高级安全设置”窗口中的“将所有后代上的所有现有可继承权限替换为此对象的可继承权限”。(Replace all existing inheritable permissions on all descendants with inheritable permissions from this object)
14. 就是这样。您刚刚更改了所有权并获得了对Windows 10(Windows 10)中文件夹或文件的完全访问权限。
方法 5:禁用用户帐户控制(Method 5: Disable User Account Control)
如果没有任何效果,那么您可以禁用用户帐户控制(User Account Control)( UAC ),这是一个弹出窗口,在您安装任何程序或启动任何程序或尝试在您的设备上进行更改时都会显示。简而言之,如果您禁用用户帐户控制 (UAC)(disable the User Account Control (UAC)),那么您将不会收到“目标文件夹访问被拒绝错误(Destination Folder Access Denied Error)”。虽然,这种方法有效,但不建议禁用UAC。
你可能也会喜欢:
最后,您获得了所有权(Ownership)并成功修复了目标文件夹访问被拒绝错误(Fix Destination Folder Access Denied Error)。我希望本教程对您有所帮助,如果您对这篇文章仍有任何疑问,请随时在评论中提问。
Fix Destination Folder Access Denied Error
Destination Folder Access Denied. Need Permissions to Perform this Action: Error generally occurs when you are trying to copy or move any folder or file to some other location. Usually, this problem occurs due to the unavailability of ‘Ownership‘. The root cause of this error is that the ownership of the folder or file is present with some other user account. Although the folder and files are available in your account but is not available for any modifications. In such cases changing the ownership to your current user account solves the problem.
You will quickly notice that you cannot delete or modify system files, even as administrator and this is because Windows system files are owned by the TrustedInstaller service by default, and Windows File Protection will keep them from being overwritten. Therefore you will encounter an “Access Denied” error.
You have to take ownership of a file or folder which is giving you access denied error to allow you to give full control of it so that you will be able to delete or modify this item. When you do this, you replace the security permissions to have access. Let’s see how to fix ‘Destination Folder Access Denied. Need Permissions to Perform this Action.’
Fix Destination Folder Access Denied Error
Method 1: Take Ownership of Item in the Command Prompt
1. Right-click on the Windows button and click on “Command Prompt(Admin).”
2. Now suppose you want to take ownership of a folder Software inside D drive whose full address is: D:\Software
3. In the cmd type takeown /f “full path of file or folder” which in our case is:
takeown /f “D:\Software”
4. In some cases the above might not work so instead of that try this (double quote included):
icacls “full path of file” /grant (username):F
Example: icacls “D:\Software” /grant aditya:F
5. A message will be displayed that this completed successfully. Restart.
Finally, Destination Folder Access Denied Error is fixed and you can modify your file/folders if not then go to the 2nd method.
Method 2: Installing the Take Ownership Registry File
1. Alternatively, you can save a lot of your time using a registry file: Click here
2. It allows you to change file ownership and access rights with one click. Install the ‘InstallTakeOwnership‘ and select the file or a folder and right-click the “Take Ownership” button.
3. After you get full access to the desired file or folder, you can even restore the default permissions which it had.Click the “Restore ownership” button to restore it.
That’s it you have successfully taken ownership of the file/folder. This will Fix Destination Folder Access Denied Error but if you don’t want to use this script then you could also manually take ownership of an item, just follow the next step.
Method 3: Turn On Network Discovery and File Sharing
By default, in Windows 10, all networks are treated as private networks unless you specify otherwise while setting up.
1. Press Windows Key + I to open Settings.
2. Under Settings click on Network & Internet.
3. Click on Network and Sharing Centre.
4. Now, click on Change advanced sharing settings option in the left pane.
5. Make sure that the options, Turn on network discovery and Turn on file and printer sharing is selected, and click on the Save changes button at the bottom.
6. Again try to access the file or folder which was earlier showing the error “Destination Folder Access Denied“.
Method 4: Manually Take Ownership of an Item
1. Go to the file or folder you want to delete or modify.
For example D:/Software
2. Right-click on the file or folder and click “Properties.”
3. Click on the Security tab and on the Advanced button.
4. Click the “change” option next to the owner label (You should make note of who the current owner is so you can change it back to it later if you like.)
5. The Select User or Group window will appear.
6. Select the user account via the Advanced button or just type your user account in the area which says ‘Enter the object name to select’ and click OK. If you click on the advanced button then click on “Find now.”
7. In the ‘Enter the object name to select’ type the username of the account which you want to give access to. Type the name of your current user account for example, Aditya.
8. Optionally, to change the owner of all subfolders and files inside the folder, select the checkbox “Replace owner on subcontainers and objects” in the “Advanced Security Settings” window. Click OK to change the ownership.
9. Now you need to provide full access to the file or folder for your account. Right-click the file or folder again, click Properties, click the Security tab and then click Advanced.
10. Click the Add button. The “Permission Entry” window will appear on the screen.
11. Click “Select a principal” and select your account.
12. Set permissions to “Full control” and click OK.
13. Optionally, click “Replace all existing inheritable permissions on all descendants with inheritable permissions from this object” in the“Advanced Security Settings” window.
14. That’s it. You just changed the ownership and got full access to the folder or file in Windows 10.
Method 5: Disable User Account Control
If nothing works then you can disable the User Account Control (UAC) which is a pop-up that shows whenever you install any programs or launch any program or try to make changes on your device. In short, if you disable the User Account Control (UAC) then you won’t get the Destination Folder Access Denied Error“. Although, this method work, but it is not recommended to disable the UAC.
You may also like:
Finally, you have taken Ownership and successfully Fix Destination Folder Access Denied Error. I hope this tutorial was helpful to you and if you still have any queries regarding this post please feel free to ask them in comments.