Instructions apply to Windows 10, Windows 8, and Windows 7.

If the media has this switch, confirm the switch is set to write, not read-only.

Open File Explorer (pressWin+e) and navigate to the machine and folder containing the file.

YIWENG 128 GB Write Protection USB Flash Drive

YIWENG / Amazon

Right-pick the file and selectProperties.

Or, open theHometab and chooseProperties.

SelectRead-onlyto remove the check mark.

Windows file properties

PressWindows key+rto fire up the Run dialog box.

Look at the Size column to locate the write-protected flash drive.

In this example, the computer hard drive is 29 GB and the USB drive is 977 MB.

Read-only attribute box in Windows

Enter the commandselect diskdisk_numberand then pressEnter.

you could now exit the window.

Before making any changes,back up the Windows Registry.

Diskpart command in Windows

See the next section for instructions.

If you’re on Windows 7, go here instead:

Double-clickWriteProtect.

Windows 7 users need to open theStartvalue instead.

Windows DISKPART > list disk

Write0(zero) into theValue datatext box, or type3if you’re on Windows 7.

SelectOKand then reboot your setup.

In theFolderspane on the left, name the keyStorageDevicePoliciesand pressEnter.

Disk number in Windows DISKPART

Name the valueWriteProtectand pressEnter.

Return to Step 3 above.

What Does Write-Protected Mean?

select disk 1 in DISKPART

On write-protected media, you might read and copy files, but you might’t write to and delete files.

FAQ

To remove write protection on Windows 11, right-nudge the file and selectProperties> clear theRead-onlybox.

Enter “attributes disk clear readonly”

Disk attributes cleared successfully

StorageDevicePolicies

Value data: 0

Control > New > Key

Saving StorageDevicePolicies

DWORD (32-bit) Value

Naming the value WriteProtect