October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk8 min

How to Change File Attributes in Windows 10/11 [2024 Guide]

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows stores more than just file names and sizes—it also tracks attributes (like Read-only, Hidden, and System) that affect how files behave and how the OS handles them.

This 2024 guide shows you the reliable ways to change file attributes on Windows 10 and Windows 11: using File Explorer, the built-in attrib command, and PowerShell. You’ll also learn how to distinguish file attributes from file permissions, which is where many people get stuck.

As an Amazon Associate I earn from qualifying purchases.

What file attributes are in Windows 10/11

File attributes are bit flags in the filesystem that describe file state. Common attributes you’ll see in Windows are:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Read-only: Prevents edits (not always from deletion, depending on permissions and ownership).
  • Hidden: Hides the file from normal views unless you enable “Hidden items”.
  • System: Marks system-related files; Windows may treat them specially.
  • Archive: Often used by backup tools to detect changed files.

Windows surfaces these in the file’s Properties dialog, and also via the attrib command in Command Prompt.

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Prerequisites and what can block changes

Before you change attributes, confirm you can modify the file and that nothing higher-priority is preventing the change.

1) You need the right permissions

If the file is in a protected location (for example, C:\Windows) or owned by a different account, Windows may deny changes even if the attributes UI lets you click boxes.

2) The file system matters

The attrib tool works broadly on NTFS and FAT/exFAT in typical cases, but system-level protections, disk errors, and encryption can affect outcomes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • NTFS: Attributes like Read-only/Hidden/System are supported.
  • BitLocker: Doesn’t normally block attribute changes, but it can complicate access if you’re locked out of the volume.
  • Network shares: Some servers may restrict changes based on share permissions and underlying NTFS permissions.

3) Run elevated when needed

If a file is under a protected folder, try running Command Prompt or PowerShell as Administrator. On Windows 10/11, you can right-click the app and select Run as administrator.

Method 1: Change attributes with File Explorer

File Explorer is the simplest way to toggle Read-only, Hidden, and System attributes for one file or a small batch.

Change attributes for a single file

  1. Open File Explorer and navigate to the file.
  2. Right-click the file, then choose Properties.
  3. On the General tab, under Attributes, check or uncheck:
  4. Read-only, Hidden, and/or System.
  5. Click Apply.
  6. If prompted, confirm the change for only the file or for the file and its contents (this prompt appears for folders).
  7. Click OK.

Change attributes for multiple files

  1. Select multiple files in the same folder (use Ctrl or Shift).
  2. Right-click → Properties.
  3. Windows may show a reduced state when files have mixed attributes. Toggle the boxes you want to change.
  4. Click Apply → OK.

If you see a message saying changes can’t be applied to some files, the ones that failed are typically protected by permissions or are owned by another user.

Change attributes for a folder (and its contents)

  1. Right-click the folder → Properties.
  2. Under Attributes, toggle Read-only, Hidden, or System.
  3. Click Apply.
  4. When prompted, choose one of these:
  • Apply changes to this folder only to avoid touching files inside it.
  • Apply changes to this folder, subfolders and files to recurse through the contents.

Method 2: Change attributes with Command Prompt (attrib)

The built-in attrib command is the fastest reliable option when File Explorer won’t cooperate or when you need precise control.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Open Command Prompt

  1. Press Win, type cmd.
  2. Choose Command Prompt.
  3. For protected locations, use Run as administrator.

Basic syntax

General form:

attrib [+A|-A] [+R|-R] [+H|-H] [+S|-S] "path\to\file"

Where:

  • +R set Read-only, -R remove Read-only
  • +H set Hidden, -H remove Hidden
  • +S set System, -S remove System
  • +A set Archive, -A remove Archive

Examples

  • Make a file writable (remove Read-only):

    attrib -R "C:\Docs\report.txt"

  • Hide a file:

    attrib +H "C:\Docs\invoice.pdf"

  • Show a previously hidden file:

    attrib -H "C:\Docs\invoice.pdf"

  • Remove System and Read-only attributes:

    attrib -S -R "C:\Logs\app.log"

Apply changes recursively (use /S)

To modify attributes inside a folder tree:

attrib +R -H "C:\Backup\." /S /D

  • /S processes subfolders
  • /D includes directories themselves

That example sets Read-only on files, removes Hidden from files, and also updates directory attributes because of /D.

Verify results

You can check attributes with:

attrib "C:\Docs\report.txt"

It prints a string of letters like R, H, S, A (and possibly a leading space).

Method 3: Change attributes with PowerShell

PowerShell is ideal for scripting, bulk changes, and repeatable maintenance. Use it when you want to target specific file patterns or integrate attribute changes into a workflow.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change attributes for one file (Read-only example)

In PowerShell, run:

$p = "C:\Docs\report.txt"
$item = Get-Item -LiteralPath $p
$item.Attributes = $item.Attributes -band (-bnot [IO.FileAttributes]::ReadOnly)
Set-Item -LiteralPath $p -Value $item

This removes Read-only by clearing the ReadOnly bit.

Hide and unhide with PowerShell

Hide:

$p="C:\Docs\invoice.pdf"
$i=Get-Item -LiteralPath $p
$i.Attributes = $i.Attributes -bor [IO.FileAttributes]::Hidden
$i.Attributes

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Unhide:

$p="C:\Docs\invoice.pdf"
$i=Get-Item -LiteralPath $p
$i.Attributes = $i.Attributes -band (-bnot [IO.FileAttributes]::Hidden)
$i.Attributes

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bulk change (example: remove Hidden and System from PDFs)

  1. Open PowerShell (Administrator if required).
  2. Run:

$root = "C:\Docs"
Get-ChildItem -Path $root -Filter *.pdf -File -Recurse | ForEach-Object {
$_.Attributes = $_.Attributes -band (-bnot [IO.FileAttributes]::Hidden) -band (-bnot [IO.FileAttributes]::System)
$_
}

PowerShell updates each file’s Attributes property using bitwise operations.

Changing permissions vs attributes (important difference)

File attributes are not the same thing as file permissions.

Attributes

These are toggles like Read-only/Hidden/System/Archive. They affect visibility and some behaviors, but Windows authorization still depends on permissions and ownership.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Permissions

Permissions control whether your account can read, write, delete, or execute a file. If you can’t save changes even after removing Read-only, it’s usually a permissions problem, not an attribute problem.

When Read-only doesn’t help

If you remove the Read-only attribute but still can’t edit the file, check:

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
  • File ownership (your user vs. another principal)
  • NTFS permissions (Read/Write/Delete)
  • If the file is stored in a folder with enforced policies (common on corporate systems)

Quick way to change permissions in Properties

  1. Right-click file → Properties.
  2. Go to the Security tab.
  3. Click Edit to change permissions.
  4. Select your user and set Write and/or Modify as needed.
  5. Click Apply → OK.

Troubleshooting: attributes won’t change

When a change fails, Windows typically leaves the attribute as-is and may show an error like “Access is denied” or silently revert in the UI.

1) You’re editing the wrong file object (shortcut vs target)

If you’re working with a shortcut (.lnk), changing its attributes won’t affect the target file. Verify the file type and location in File Explorer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2) The file is in use

If the file is open in another app (editor, antivirus scan, sync tool), try:

  • Close the app that’s using the file.
  • Retry the change.
  • If still blocked, reboot and try again.

3) Protected folders and system files

Trying to toggle System attributes inside C:\Windows can fail due to access controls. Use the appropriate tool and run as Administrator. Even then, changing attributes can break system behavior.

4) Permissions override the attribute intent

Example: you remove Read-only, but the file still can’t be edited. That points to NTFS permissions. Use the Security tab to grant your account Modify or Write.

5) You’re on a read-only medium or synced folder

  • Write-protected USB: attributes may not change because the media is effectively read-only.
  • Cloud sync (OneDrive): another process can re-apply attributes; pause sync and retry.

6) Use attrib with full paths and quoting

Command Prompt is strict. Always quote paths with spaces:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

attrib -R "C:\My Folder\file name.txt"

If you omit quotes, Windows often targets the wrong path and the change won’t apply.

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0 | for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.

7) Confirm the attribute set actually changed

After running a command, re-check:

attrib "C:\Docs\report.txt"

If it still shows R or H, permission issues or file locking are likely still in play.

8) If you get Access is denied

Try this sequence:

  1. Run Command Prompt/PowerShell as Administrator.
  2. Take ownership (Properties → Security → Advanced → Change owner).
  3. Update permissions for your account.
  4. Retry attrib or PowerShell.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common mistakes to avoid

  • Confusing Read-only with permissions: Read-only can be cleared, but you may still not be allowed to edit.
  • Not quoting paths: spaces in folder names are the #1 cause of failed attrib commands.
  • Assuming System is safe to toggle: changing System attributes on key files can cause instability. Only do this when you fully understand the target.
  • Editing a folder but expecting file-only behavior: folder prompts (“this folder only” vs “subfolders and files”) determine how far changes propagate.
  • Relying on the Archive flag: Archive is mainly for backup tools; changing it usually won’t help with visibility or editing.

Quick reference table: attribute meanings and flags

Attribute What it typically affects attrib flag PowerShell bit
Read-only Prevents typical edits (may still be blocked by permissions) +R / -R [IO.FileAttributes]::ReadOnly
Hidden Hidden from normal File Explorer views +H / -H [IO.FileAttributes]::Hidden
System Used for system-related files; Windows may protect behavior +S / -S [IO.FileAttributes]::System
Archive Backup tools track changes; often reset by backups +A / -A [IO.FileAttributes]::Archive

FAQs

Can I change attributes without Administrator privileges?

Often yes, if the file is in a location you fully control. In protected folders or for system-owned files, you’ll typically need Administrator rights and/or permission changes.

Why does File Explorer revert the attribute checkbox after I click Apply?

That usually happens when Windows (or a security policy or sync tool) denies the change, or a different process re-applies the state. Try using attrib with full paths, and check Security permissions if it still won’t stick.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What’s the fastest way to unhide files?

If you need a quick fix, use Command Prompt:

attrib -H "C:\path\file"

For folders, add /S and /D as needed.

Will changing the System attribute break something?

It can. The System attribute is often used to mark files Windows depends on. Change it only when you have a specific reason and you’re targeting the correct file.

How do I change attributes on a folder and all its contents?

In File Explorer, go to the folder’s Properties → toggle attributes → Apply → choose Apply changes to this folder, subfolders and files. In Command Prompt, use attrib with /S and /D.

Bottom Line

On Windows 10/11, changing file attributes is straightforward when you pick the right tool: File Explorer for manual toggles, attrib for precise command-line control, and PowerShell for bulk or scripted updates.

If attributes won’t change, don’t assume you did something wrong—most failures are permission, ownership, or file locking. When in doubt, verify with attrib and check the Security tab.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.