The “attributes are inconsistent” error on Windows 11 usually appears when you try to copy, move, or delete a file or folder, and it stops the operation. The fix is to clear the file’s attribute flags using the Command Prompt or PowerShell, then retry the action. Below are the exact steps, plus why this happens and how to prevent it.
What Causes the Error
Windows stores extra metadata on every file and folder in something called attributes. These are flags like Read-only, Hidden, Archive, and System. The error “attributes are inconsistent” typically means Windows has detected a conflict between the attributes stored in the file system and the attributes it expects for that item. This often happens after:
- A previous copy or move operation was interrupted (power loss, crash, or forced reboot).
- Cloud sync tools (OneDrive, Dropbox, Google Drive) changed attributes while a file was being accessed.
- Antivirus software temporarily locked or modified a file’s flags.
- The file was created on a different file system (FAT32, exFAT) and then moved to NTFS.
- Corrupted shortcut (.lnk) files or junction points.
It is not a sign of a failing hard drive, but it can be annoying because Windows refuses to proceed until the attributes are corrected.
How to Fix It with Command Prompt
The most reliable fix is to reset the attributes using the attrib command. This works for both files and folders.
- Press Windows + S, type cmd, right-click Command Prompt, and select Run as administrator.
- Navigate to the parent folder of the problematic item. For example, if the file is in
C:\Users\YourName\Downloads\file.txt, type:cd /d C:\Users\YourName\Downloads - Clear all attributes from the file:
attrib -r -a -s -h "file.txt"
For a folder, add the/dswitch to apply to the folder itself and subfolders:attrib -r -a -s -h /s /d "foldername" - Try the copy, move, or delete operation again.
If you don’t know the exact name, you can use wildcards. For example, attrib -r -a -s -h *.* clears attributes on all files in the current folder. Be careful with the -s (system) flag on system files; if you clear it on a critical Windows file, you might cause other issues. Stick to user files and folders.
Using PowerShell as an Alternative
If Command Prompt doesn’t work, PowerShell offers a more verbose way to see and clear attributes.
- Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
- To view the current attributes of a file:
Get-Item "C:\path\to\file.txt" | Select-Object Attributes - To remove all attributes except the ones Windows needs, use:
Set-ItemProperty -Path "C:\path\to\file.txt" -Name Attributes -Value "Normal" - For folders, you may need to add
-Recurseto apply to all subitems:Get-ChildItem -Path "C:\path\to\folder" -Recurse | ForEach-Object { $_.Attributes = 'Normal' }
PowerShell is especially useful when the error is on a folder with many nested subfolders, because the command can process them all at once.
What to Do If the Error Persists
Sometimes clearing attributes isn’t enough because the file is locked by another process. Try these in order:
- Close all programs that might be using the file, including your browser, Office, or media player.
- Restart Windows Explorer: Open Task Manager (Ctrl+Shift+Esc), find Windows Explorer, right-click it, and choose Restart.
- Check for file locking: Use the built-in
openfilescommand in an admin prompt to list open files, though it may require enabling the maintenance mode first. - Run a disk check: Open an admin Command Prompt and type
chkdsk /f /r C:(replace C: with the drive letter). You’ll need to restart your PC. This repairs file system errors that could be causing the attribute mismatch. - Try Safe Mode: Boot into Safe Mode (Settings > System > Recovery > Advanced startup) and attempt the operation there. If it works, a third-party program is interfering.
If none of these work, the file itself might be corrupted. In that case, try copying it with a different tool like robocopy (which can ignore attributes) or use a file recovery program to extract the data.
How to Prevent It from Happening Again
While you can’t fully prevent every attribute conflict, these habits reduce the chances:
- Don’t interrupt file transfers: Let copy/move operations finish before shutting down or unplugging external drives.
- Eject external drives properly: Use the “Safely Remove Hardware” icon before unplugging a USB drive.
- Keep cloud sync apps updated: Old versions sometimes mishandle attributes.
- Avoid using the same file in two programs at once, especially if one is a cloud sync client.
- Run periodic disk checks: Once a month, open an admin prompt and type
chkdsk /fon your system drive.
If you frequently see this error on a specific external drive, consider reformatting it to NTFS (if it’s not already) to better support Windows attributes.
Frequently Asked Questions
Does this error mean my file is damaged?
No. It only means the attribute metadata is inconsistent. The file content is usually intact. After clearing attributes, you can usually access the file normally.
Can I just delete the file ignoring the error?
If the error appears when you try to delete, you can try del /f /q "path\file" in an admin Command Prompt. The /f forces deletion of read-only files, and /q suppresses confirmation. This often bypasses the attribute check.
Why does this happen on a network drive?
Network drives (SMB shares) may have different attribute support depending on the server OS. If the server is Linux or an older NAS, it might not handle Windows attributes correctly. Try copying the file to your local drive first, then to the network location.
Is there a way to fix this without using commands?
You can try right-clicking the file, selecting Properties, and unchecking Read-only and Hidden under the General tab. This works for simple cases, but if the System attribute is set, you’ll need the command line because Windows hides the System checkbox by default.
Will this fix work on Windows 10?
Yes. The attrib command and PowerShell methods are identical in Windows 10 and 11. The error is not new to Windows 11; it existed in earlier versions too.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Schedule Tweets on X (Twitter) Web App
- macOS Sierra USB Installer: How to Make One
- Fix System PTE Misuse BSOD on Windows
- PlayStation Games Still Physical After Store Closures
- Fix Standby Mode Not Working on iPhone
- Madden 19 Crashing on PC: Fixed