A practical guide to clearing the Read-only checkbox, fixing folders that keep switching back, and restoring write access when the real problem is permissions, ownership, OneDrive, or security protection.
When you open a folder's Properties window in Windows 10 or Windows 11, the Read-only checkbox may appear filled with a small square instead of being fully checked or fully unchecked. This often confuses users because it looks like the folder itself is locked.
For folders, this checkbox is not always a simple write-protection switch. Windows may use the folder Read-only attribute for folder customization, icon behavior, and internal Explorer metadata. Because of this, clearing the box in Properties may appear to work, but the square can return the next time you open the same window.
Before changing attributes or permissions, perform these quick checks. They help you avoid unnecessary fixes and reduce the risk of modifying protected system locations.
C:\Windows, C:\Program Files, C:\ProgramData, or another protected system directory.C:\ or to Windows system folders.
The easiest method is to use the graphical interface in File Explorer. This is suitable when you want to remove the Read-only attribute from files inside a normal user folder.
After that, try editing or saving a file inside the folder. If the Read-only square returns in Properties but editing works, no further action is required. Windows Explorer may simply be showing its standard folder attribute indicator.
If Folder Properties does not help, use the built-in attrib command. It can remove the Read-only attribute from all files and subfolders recursively.
Win + S, type cmd.attrib -r "C:\Users\YourName\Documents\MyFolder" /s /d
The command uses these switches:
-r removes the Read-only attribute./s applies the change to matching files in the current folder and all subfolders./d also processes folders, not only files.attrib -r "D:\Projects\Website" /s /d
You can also open Command Prompt directly inside a folder. Click the address bar in File Explorer, type cmd, press Enter, and run:
attrib -r *.* /s /d
PowerShell is useful when you want a more modern command-line method or when you need to script the operation for many folders.
Get-ChildItem "C:\Users\YourName\Documents\MyFolder" -Recurse -Force | ForEach-Object { $_.Attributes = $_.Attributes -band -bnot [System.IO.FileAttributes]::ReadOnly }
To remove the Read-only attribute from the folder itself as well, run this second command:
(Get-Item "C:\Users\YourName\Documents\MyFolder" -Force).Attributes = ((Get-Item "C:\Users\YourName\Documents\MyFolder" -Force).Attributes -band -bnot [System.IO.FileAttributes]::ReadOnly)
For everyday troubleshooting, the attrib command is shorter. PowerShell is better when you are building a repeatable maintenance script or need to combine attribute changes with filtering, logging, or other file operations.
If Windows says Access denied, You need permission to perform this action, or an application cannot save files into the folder, clearing the Read-only attribute alone will not solve the problem. You need to check the folder's NTFS permissions.
If your account is not listed or permission changes are blocked, take ownership first:
Sometimes a folder behaves as read-only because another protection layer blocks changes. This is common with Desktop, Documents, Pictures, cloud-synced folders, shared network folders, and folders managed by workplace policies.
If the folder is inside OneDrive, Dropbox, Google Drive, or another sync folder, make sure the file is fully available offline and not locked by synchronization.
For shared folders on another PC, NAS, or server, local attribute changes may not matter. You need write permission on the remote share and on the underlying file system. Ask the owner or administrator to grant Change or Modify permissions.
If the Read-only checkbox keeps coming back after you clear it, use this table to identify the likely cause.
| Symptom | Likely Cause | Recommended Fix |
|---|---|---|
| The checkbox shows a filled square, but files can be edited. | Normal Explorer behavior for folders. | No fix needed. The folder is not actually blocking writes. |
| Files cannot be saved or overwritten. | Files inside the folder have the Read-only attribute. | Use attrib -r "FolderPath" /s /d. |
| Windows shows Access denied. | NTFS permissions or ownership problem. | Take ownership and grant your account Modify permission. |
| Only specific apps cannot write to the folder. | Controlled Folder Access or antivirus protection. | Allow the trusted app in Windows Security. |
| Folder is on a USB drive or SD card. | Write protection, file system errors, or device failure. | Check physical lock switch, run disk check, and test another device. |
| Folder is inside OneDrive or a cloud directory. | Sync state, online-only files, or sharing permissions. | Make the folder available offline and review sharing settings. |
If the problem appears only on a USB drive, memory card, or external HDD/SSD, file system errors may prevent changes. Open Command Prompt as administrator and run:
chkdsk E: /f
Replace E: with the correct drive letter. Close open files before running the command.
Because the folder Read-only checkbox in File Explorer does not always represent a simple lock. For many folders, Windows may show a filled square even after you clear it. The key test is whether you can create and edit files inside the folder.
No. A folder can show a Read-only indicator while files inside remain editable. To remove the attribute from files inside the folder, use attrib -r "FolderPath" /s /d.
You should not change attributes or ownership for the entire C:\Windows folder. Windows protects system folders for stability and security. Changing permissions there can break updates, services, and installed programs.
The application may be using the phrase βread-onlyβ to describe a broader write-access problem. Check permissions, ownership, antivirus protection, Controlled Folder Access, cloud sync status, and whether the file is open in another program.
The fastest command is:
attrib -r "C:\Path\To\Folder" /s /d
Replace C:\Path\To\Folder with the actual folder path.
To remove the Read-only attribute from a folder in Windows 10 or Windows 11, start with Folder Properties. If that does not help, use the attrib command with /s /d to clear the attribute recursively. If Windows still blocks changes, focus on permissions, ownership, Windows Security, OneDrive, or the storage device itself.
In most cases, the Read-only square shown for folders is not a serious issue. The real sign of a problem is an inability to create, edit, rename, or delete files inside the folder.