then click on Run and type “regedit” and click on OK to start the
From there right click and create a new key and name it
“StorageDevicePolicies”. In the window on the right then create a new
DWORD value and label it WriteProtect, give it a value of “1” and users
can no longer write to USB drives. To re-enable this option change the
value to 0 and users are again allowed to write.
The modifications you made will be in effect after you reboot your PC.