Access Denied When Copying Files Windows 10: Fixes
Access denied when copying files in Windows 10 usually happens because your user account lacks permission to read or write to the destination folder, or the source file is locked by another process. The fix is to take ownership of the folder, grant your account full control, or unlock the file, and this article walks through each method step by step.
Why Windows 10 Blocks File Copies
Windows 10 enforces two separate permission systems that can block a copy operation. The first is NTFS permissions, which are stored on the drive and control which users and groups can read, write, or modify files. The second is share permissions, which apply only when you copy over a network. If either system denies your account, you get an “Access Denied” or “You need permission to perform this action” error.
Another common cause is that the file is currently open by another program. For example, copying a database file while the database service is running, or copying a file that is locked by a backup tool, will trigger the error. Sometimes the file is marked as read-only, or the destination folder has a special attribute that blocks writes.
How to Fix Access Denied Errors
Before changing permissions, try the simplest fixes first. Close any programs that might be using the file, restart File Explorer, and then try again. If that does not work, follow these steps in order.
- Run File Explorer as administrator. Right-click the File Explorer icon and select “Run as administrator”, then navigate to the file and copy it. This bypasses some user-level restrictions but not NTFS permissions.
- Take ownership of the file or folder. Right-click the item, select Properties, go to the Security tab, click Advanced, then click Change next to the owner name. Type your username, click Check Names, and then OK. Check the box “Replace owner on subcontainers and objects” if it is a folder, and click OK.
- Grant your account full control. After taking ownership, go back to the Security tab, click Edit, select your user, and check “Full control” under Allow. Apply the change to all subfolders if prompted.
- Use the command line. Open Command Prompt as administrator and run
takeown /f "C:\path\to\file" /r /d yfollowed byicacls "C:\path\to\file" /grant username:F /t. Replaceusernamewith your Windows account name.
If the error persists, the issue might be that the file is locked. Use the built-in Resource Monitor (open it via the Start menu, go to the CPU tab, and expand “Associated Handles”) to search for the file name and see which process has it open. Close that process and try copying again.
Common Mistakes That Cause the Error
Many users accidentally create the problem themselves by moving files into system-protected folders like C:\Program Files or C:\Windows. These folders have strict permissions that even administrators cannot override without taking ownership. Another mistake is copying files from a compressed or encrypted folder to a different drive; the copy process may fail if the destination does not support the same attributes.
Another frequent issue is that the destination folder has a read-only attribute set. To check, right-click the destination folder, select Properties, and look at the Attributes section. If “Read-only” is checked, uncheck it and click Apply. Note that some folders, like those synced by cloud services, may reapply the attribute automatically.
How to Prevent Access Denied Errors
To avoid this error in the future, keep your personal files in your user folder (C:\Users\YourName) rather than in system folders. When you copy files to an external drive, make sure the drive is formatted with NTFS, not FAT32, because FAT32 does not support NTFS permissions and can cause odd behavior. If you regularly copy files between computers, consider using a shared folder with explicit permissions set for all users.
If you are copying files to a network location, the problem may be on the server side. Check the share permissions and NTFS permissions on the remote computer. The effective permission is the intersection of both, so you need to be allowed on both levels.
Alternatives to Copying
If you cannot resolve the permission issue, there are other ways to move your data. You can use the robocopy command, which is designed to handle permissions and retries. For example, robocopy "C:\source" "D:\destination" /E /COPYALL copies all file information, including permissions, and can bypass some errors. Another option is to use a backup tool that runs as a service, which may have higher privileges than your user account.
For a one-time copy, you can also use a live Linux USB stick to boot the computer and copy the files from outside Windows. This bypasses Windows permissions entirely, but it requires some technical comfort and a spare USB drive.
Frequently Asked Questions
Why do I get “Access Denied” even though I am the administrator?
Being an administrator does not automatically grant access to every file. Windows uses a feature called User Account Control (UAC) that runs administrator accounts with standard user permissions by default. You must explicitly elevate your process (right-click and “Run as administrator”) or take ownership of the file to override the permissions.
How do I take ownership of a folder in Windows 10?
Right-click the folder, select Properties, go to the Security tab, click Advanced, and then click Change next to the owner name. Type your username, click Check Names, and then OK. Check “Replace owner on subcontainers and objects” to apply to all files inside, and click OK. After that, you can grant yourself full control in the same Security tab.
What does “You need permission to perform this action” mean?
This error appears when the file or folder has a read-only attribute or the NTFS permissions do not allow your account to write. It is essentially the same as “Access Denied” but with a friendlier message. The fix is the same: take ownership and grant full control.
Can I copy a file that is in use by another program?
Usually no, because Windows locks files that are open by a process. You can try using the Volume Shadow Copy service, which some backup tools use, but the standard copy command will fail. Close the program that has the file open, or use a tool that can read locked files.
Is it safe to take ownership of system files?
Taking ownership of system files in C:\Windows is not recommended because it can break the operating system or cause security issues. Only take ownership of files you need to access for legitimate reasons, and avoid modifying system files unless you are sure of what you are doing.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.