How To Enable Disable USB Write Protection in Windows 10
The link below is for a ZIP file that contains two batch files to either enable or how to disable USB write protection on a Windows 10 computer. These batch files also work on Windows 7 machines.
This solution is ultra-easy and very quick: one click to run the registry edit file and one click to confirm the task. That’s it.
Typically, a person will want to lock down the USB ports of a computer to ensure a virus doesn’t spread through a USB device, such as a flash drive. This batch file provides a fast and simple way to both lock down your USB ports and easily unlock them again.
Important: Do not have a USB flash drive connected to the system when you run either batch file.
For those seeking more technical details, here is the specific registry edit being applied. Changing the DWORD value to 00000001
sets the device policy for the computer to be write-protected. Changing that value back to 00000000
restores normal read/write access.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
StorageDevicePolicies]
“WriteProtect”=dword:00000001
Note: This USB write protection method is specific to the PC on which it is applied. It is not device-specific and will not follow the USB drive to other machines.
If you require USB write protection that is permanent on the device itself and universal across all computers, contact Nexcopy.com and ask about their Lock License USB drives. This hardware-level solution is embedded in the USB controller, ensuring the drive is always write-protected, preventing any possibility of a virus being written to the USB stick. This is the best universal solution for USB write protection.
Screenshots of the Batch File Process
Batch files included in the ZIP:

Windows confirmation prompt after running the batch file:

Task completion screen:

Download link for the two batch files:
Tags: how to, usb, usb write protect, write protection
