The link below is for a zip file which has two batch files to either set the USB write protection, or remove the USB write protection for a Windows 10 computer. This batch file also works for Windows 7 machines.
This solution is ultra-easy and very quick. One click to run the reg 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 insure a virus doesn’t spread to the computer through a USB device, like a flash drive. The nice thing about this batch file is a very quick and easy way to both lock down your USB ports, and equally easy way to unlock your USB ports.
It’s important to note; do not have a USB flash drive connected to the system when you run either batch file.
For those looking for a bit more detail, the information below is the specific registry edit we are making. Changing the dword to 00000001 sets the device policy for the computer to be write protected. Changing that value back to 00000000 will make the USB ports read/write.
It is also important to understand this USB write protect solution is not specific to the USB stick itself. Nor will this solution work on all Windows machines when you move USB drives from computer to computer. Said another way, this change is PC specific.
If you need USB write protection to be permanent to the device and universal to anything the USB is connected to, you may contact Nexcopy.com and ask for their Lock License drives. This is a solution we have found works very well and is done at the controller level of the USB stick itself. Meaning, the USB is write protected for anything it is connected to. The value of this configuration is no chance for a virus to jump onto the USB stick in the first place. This last solution is really the best solution for universal USB write protection.
Here is a screen shot of the two batch files:Continue Reading