HomeUSB protect: read-only
USB Protect Without Locking Yourself Out: Read-Only Installer Sticks
Read-only is the cheapest USB protection there is, and the easiest to get wrong. This page gives the order to try the controls in, and the fix when Windows reports that a stick is write protected.
USB protect with read-only: quick answer
To make an installer stick read-only, use the hardware write-protect switch if it has one, otherwise run DiskPart as administrator and set attributes volume set readonly on the stick’s volume. Policy is the third option on managed PCs. Read-only blocks edits and does not stop copying.
| Applies to | USB sticks on Windows 10 and 11 |
|---|---|
| Time needed | 5 to 15 minutes |
| Difficulty | Moderate |
| Cost | Free |
| Needs admin rights | Yes, for DiskPart and policy |
| Last verified | November 2026 |
This page is part of our guide to protecting software installers on a USB stick. The read-only steps below pair with the hash check described there.
The Switch, Attribute, Policy ladder
The Switch, Attribute, Policy ladder orders the read-only controls by how widely they work. A hardware switch holds on any system, a DiskPart attribute holds through Windows, and a policy holds only on managed PCs. Climb the ladder in that order and stop at the first rung that fits.
| Rung | Works on | Who can undo it | Use when |
|---|---|---|---|
| Hardware switch | Any system | Anyone holding the stick | The drive has a switch |
| DiskPart attribute | Windows | An administrator on the PC | You control the PC |
| Policy | Managed Windows PCs | IT admins | You manage the fleet |
Use the write-protect switch when the drive has one
Slide the physical write-protect switch to the locked position before you plug the stick in. Some drives carry one and many cheap sticks do not. It works without drivers on any operating system, which makes it the only read-only control that survives a customer’s unknown PC.
If you ship a high-value release and care about integrity, buying drives with a switch is a one-time cost that removes a whole class of accidents. Label the switch position on the sleeve so a customer knows the stick is meant to refuse writes.
Set a volume read-only with DiskPart
To set an installer stick read-only with DiskPart, open an administrator prompt, list volumes, select the stick by number, and set the readonly attribute. Confirm the volume size before you press Enter, because selecting the system volume by mistake makes your own PC refuse writes.
diskpart
list volume
select volume 5
attributes volume set readonly
attributes volume
exit
Clear the flag when a stick says it is write protected
When Windows says a stick is write protected, the fix order is switch, then attribute, then policy. Clear the attribute only on a stick you own, using the same DiskPart session pattern, and do not edit the registry first. Most reports end at the first two checks.
diskpart
list volume
select volume 5
attributes volume clear readonlyAnalytics Insight lists write-protection fixes alongside platform steps, which helps if your stick moves between Windows, macOS and Android.
Group Policy and managed PCs: when the PC blocks writes
On a managed PC, a Group Policy can deny write access to removable drives that BitLocker does not protect. It sits under Computer Configuration, Administrative Templates, Windows Components, BitLocker Drive Encryption, Removable Data Drives. A customer on such a PC may see the stick as read-only, whatever you set.
USB Block covers the other side of this problem: it blocks unknown drives and keeps an allow-list. Its page notes it is not antivirus and requires administrator rights to install.

Read-only limits you should state to customers
Read-only protects integrity and nothing more. Anyone can read and copy what is on the stick, and a person with administrator rights can clear a software flag. State these limits on the sleeve so a customer does not assume a secret is kept.
- Protection from accidental overwrites
- A stable file set for hashing
- No password to lose
- Protection from copying
- A hidden folder
- Defence against format on a PC with admin rights
Questions about read-only USB sticks
How do I make a USB stick read-only in Windows?
Open an administrator command prompt, run diskpart, list volume, select your stick by number, then run attributes volume set readonly. The stick refuses writes until you run attributes volume clear readonly on the same volume. Run list volume again afterwards to confirm you picked the stick and not a system drive.
Why does my USB stick say it is write protected?
Three causes cover almost every case: a physical switch is on, a read-only attribute was set, or a policy on the PC blocks writes to removable drives. Check them in that order before assuming the stick is damaged. A switch on the casing is the cheapest fix, so look there first, then try another USB port.
Does read-only stop someone copying files off the stick?
No. Read-only blocks writes, not reads. Anyone can still copy the contents. To keep strangers from reading the files, add a password or encryption on top, which the main guide and the comparison page cover. Treat read-only as protection from edits only, never as protection from readers.
Can a read-only flag be removed by a customer?
A user with administrator rights can clear a DiskPart read-only attribute on their own PC. A hardware switch holds on any system, which is why we start the ladder there when a stick must stay unchanged. A flag set in software is fine for honest users and weak against a determined one.
Does USB Block make a stick read-only?
The USB Block page does not document a read-only mode. It blocks or allows devices and logs what happened, and it needs administrator rights to install. Use it on the receiving PC to control which sticks are accepted. Do not rely on it to freeze the contents of the stick you ship.
Where Copy Protect fits beside a read-only stick
Copy Protect does not make a stick read-only. We recommend it for the media beside an installer, since the Copy Protect page lists documents, images, audio and video. Pair it with the read-only steps above for the installer folder.