Windows Folder Permissions Β· Updated June 2026

How to Remove the Read-only Attribute from a Folder in Windows 10 and Windows 11

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.

πŸ“– 8 min read 🧰 Windows 10 & 11 πŸ” Permissions included

Why Does a Folder Show as Read-only in Windows 10 and Windows 11?

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.

ℹ️
Important distinction If you can create, rename, edit, and delete files inside the folder, the filled Read-only box is usually harmless. If you receive Access denied, You need permission, or This folder is read-only errors, the real issue is usually NTFS permissions, ownership, antivirus protection, or sync software.
Harmless indicator The Read-only box shows a square, but files inside the folder can still be changed.
Actual file attribute Individual files are marked Read-only and cannot be overwritten until the attribute is removed.
Permission problem Your user account does not have Modify or Full control rights for the folder.
Protection layer Windows Security, OneDrive, backup software, or a corporate policy blocks changes.

Before Removing Read-only from a Folder: Quick Checks

Before changing attributes or permissions, perform these quick checks. They help you avoid unnecessary fixes and reduce the risk of modifying protected system locations.

⚠️
Safety note Attribute commands are safe for personal folders such as Documents, Downloads, Desktop, project folders, and external drives. Be careful when applying recursive commands to the root of drive C:\ or to Windows system folders.

How to Remove Read-only from a Folder Using Folder Properties

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.

  1. Open File Explorer and locate the folder.
  2. Right-click the folder and choose Properties.
  3. On the General tab, find the Attributes section.
  4. Clear the Read-only checkbox if it is checked or filled.
  5. Click Apply.
  6. When Windows asks what to apply the change to, choose Apply changes to this folder, subfolders and files.
  7. Click OK and wait for the operation to finish.

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.

βœ…
Best for Personal folders, extracted archives, downloaded project folders, copied files from another PC, and folders on external drives where you only need a quick attribute reset.

Remove the Read-only Attribute with the ATTRIB Command

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.

  1. Press Win + S, type cmd.
  2. Right-click Command Prompt and select Run as administrator.
  3. Run the command below, replacing the path with your folder path.
attrib -r "C:\Users\YourName\Documents\MyFolder" /s /d

The command uses these switches:

Example: Remove Read-only from a Folder on Drive D

attrib -r "D:\Projects\Website" /s /d

Example: Remove Read-only from the Current Folder

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
⚠️
Path warning Always double-check the folder path before pressing Enter. Recursive commands affect every file and subfolder under the specified location.

Remove Read-only from a Folder with PowerShell

PowerShell is useful when you want a more modern command-line method or when you need to script the operation for many folders.

  1. Right-click the Start button.
  2. Select Terminal (Admin), Windows PowerShell (Admin), or Windows Terminal (Admin).
  3. Run the following command after changing the folder path.
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.

Fix Folder Permissions If Removing Read-only Does Not Work

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.

Give Your Account Modify Permission

  1. Right-click the folder and select Properties.
  2. Open the Security tab.
  3. Select your user account from the list.
  4. Click Edit.
  5. Enable Modify or Full control under Allow.
  6. Click Apply and confirm administrator prompts.

Take Ownership of the Folder

If your account is not listed or permission changes are blocked, take ownership first:

  1. Right-click the folder and open Properties.
  2. Go to Security β†’ Advanced.
  3. Next to Owner, click Change.
  4. Type your Windows user name or Microsoft account email address and click Check Names.
  5. Click OK.
  6. Enable Replace owner on subcontainers and objects if you need to apply ownership to everything inside.
  7. Click Apply, then reopen the folder properties and assign Modify or Full control permissions.
ℹ️
When permissions matter A folder can have no Read-only attribute and still be impossible to edit if your account does not have write permissions. Conversely, a folder can show the Read-only square while still allowing normal file editing.

Check Windows Security, OneDrive, and Sync Apps

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.

Check Controlled Folder Access

  1. Open Windows Security.
  2. Go to Virus & threat protection.
  3. Open Ransomware protection.
  4. Check whether Controlled folder access is enabled.
  5. If a trusted app cannot save files, choose Allow an app through Controlled folder access and add the app.

Check OneDrive or Other Cloud Sync Tools

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.

Check Network Folder Permissions

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.

Folder Keeps Reverting to Read-only: What It Really Means

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.

Run a Disk Check If the Folder Is on an External Drive

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.

FAQ: Removing Read-only from Folders in Windows

Why can't I remove Read-only from a folder permanently?

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.

Does Read-only on a folder mean all files inside are read-only?

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.

Can I remove Read-only from the Windows folder?

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.

Why does a program say the folder is read-only?

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.

What is the fastest command to remove Read-only from a folder?

The fastest command is:

attrib -r "C:\Path\To\Folder" /s /d

Replace C:\Path\To\Folder with the actual folder path.

Final Recommendations

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.