Fix "File Cannot Be Accessed by the System" in Windows 11
In this article
If you see “File cannot be accessed by the system” in Windows 11, the fix is usually to check the file’s permissions, close any program that might be locking it, or run a disk check. This error typically appears when Windows or another app cannot read the file due to permission restrictions, encryption, or a corrupted file system entry.
What Causes This Error in Windows 11?
Windows 11 shows this message when the operating system itself cannot open a file, even though the file may appear in File Explorer. Common reasons include:
- Insufficient permissions: Your user account may not have “Read” or “Full control” rights on the file or its parent folder.
- File is locked by another process: A program (like a word processor, media player, or cloud sync client) has the file open and is preventing access.
- Encryption or EFS: The file is encrypted with the Encrypting File System (EFS), and your current account doesn’t have the decryption key.
- Corrupted file system: NTFS metadata or the Master File Table (MFT) may have errors, making the file unreadable.
- OneDrive or cloud placeholder issues: Files that are “online-only” may not be downloaded properly, causing access failures.
- Antivirus or security software: Sometimes security tools block access to certain files, especially if they are flagged as suspicious.
Step-by-Step Fixes to Try
Work through these fixes in order. Most users resolve the issue with the first two steps.
- Close all programs that might be using the file. Save your work, close apps like Word, Excel, Photoshop, or video players, and try opening the file again. If you’re not sure which app is locking it, restart your PC and try immediately after boot.
- Check file permissions. Right-click the file, select Properties, go to the Security tab, and click Advanced. Ensure your user account has “Full control” or at least “Read & execute”. If not, click Change next to the owner, set it to your account, then edit permissions to grant yourself full control.
- Run a disk check. Open Command Prompt as administrator (search “cmd”, right-click, “Run as administrator”) and type
chkdsk C: /f(replace C: with the drive letter where the file is). You may need to restart. This repairs file system errors that can cause access failures. - Clear OneDrive cache or make the file “always keep on this device”. If the file is in OneDrive, right-click it and select “Always keep on this device” to download it fully. If that fails, pause OneDrive syncing temporarily and try again.
- Disable third-party antivirus temporarily. Some security tools block file access. If you have a third-party AV, disable its real-time protection for a minute and try opening the file. Re-enable it afterward.
- Check if the file is encrypted. Right-click the file, go to Properties > General > Advanced. If “Encrypt contents to secure data” is checked, you need the original encryption certificate. If you don’t have it, you may not be able to recover the file.
How to Fix It When the File Is on an External Drive or Network
If the file is on a USB drive, SD card, or network location, additional factors come into play:
- Check the drive connection: Try a different USB port or cable. If it’s a network drive, make sure you’re connected to the correct network and the server is online.
- Run chkdsk on the external drive: Open Command Prompt as admin and type
chkdsk E: /f(replace E: with the drive letter). This can fix file system errors on removable media. - Copy the file to your local drive: Sometimes the external drive has a loose connection or is failing. Copying the file to your Desktop may allow access.
- Check network permissions: For network shares, ensure you have the correct share permissions. Right-click the network drive in File Explorer, select “Properties”, and check the “Security” tab for your user account.
What to Do if the File Is Corrupted
If the file itself is damaged, no permission fix will help. Try these recovery methods:
- Use the “Open and Repair” feature in Microsoft Office apps (File > Open > select the file > click the arrow next to Open > “Open and Repair”).
- Restore a previous version: Right-click the file, select “Properties”, go to the “Previous Versions” tab, and see if an older copy exists. This works if File History or System Protection is enabled.
- Use a third-party file recovery tool: Some tools can read partially corrupted files, but results vary. Try a free trial of a reputable recovery program.
How to Prevent This Error in the Future
You can reduce the chance of seeing this error again by:
- Keeping your Windows and drivers updated. Microsoft regularly fixes file system bugs.
- Not storing important files only in the cloud. Use the “Always keep on this device” option for files you need offline.
- Regularly running disk checks. Use
chkdskor the Storage Sense tool in Windows Settings to keep your drives healthy. - Backing up your files. Use File History or a cloud backup service so you always have a copy if a file becomes inaccessible.
Frequently Asked Questions
Why does “File cannot be accessed by the system” appear even though I’m the administrator?
Being an administrator doesn’t automatically grant access to every file. Files can have explicit deny permissions, or they may be owned by another account (like SYSTEM). You may need to take ownership of the file before you can change permissions.
Can I bypass the error by renaming the file?
Sometimes renaming works if the file name contains invalid characters or is too long. But if the error is due to permissions or corruption, renaming won’t help. Try renaming the file to something short like “test.txt” and see if that resolves it.
Will reinstalling Windows fix this error?
Reinstalling Windows can fix system-level file permission issues, but it won’t recover a corrupted file. It’s a last resort. Try all other fixes first, and always back up your data before reinstalling.
Is it safe to use a third-party file unlocker tool?
Many unlocker tools are safe, but some may bundle unwanted software. Only download from reputable sources. A safer approach is to use the built-in “Restart” or “Safe Mode” to close locking processes.
How do I know if the file is encrypted?
Right-click the file, select “Properties”, and look at the “General” tab. If the “Advanced” button shows “Encrypt contents to secure data” is checked, the file is encrypted. Encrypted files appear green in File Explorer.