USB Write Protection is a batch file that can switch on, switch off and display the state of the USB write protection of the Windows operating system.
The file
"USBWP.cmd" shows the state of the write protection (run without parameters)
"USB Write Protection ON.cmd" enables the write protection
"USB Write Protection OFF.cmd" disables the write protection
"USB Write Protection CHANGE.cmd" changes the status of the write protection
The folder "Optional Registry files" contains the files "USB Write Protection ON.reg" and "USB Write Protection OFF.reg", which can also be used to activate or deactivate the USB write protection.
All files needs administrator privileges.
The change of the write protection only affects newly connected USB devices.
Via the context menu of the Windows Explorer, a shortcut can be created on the desktop for each .cmd file with "Send to" / "Desktop (Create shortcut)".