These methods are not foolproof but since most users dont mess with a computers registry files, they will never figure it out.
How to Disable USB Port
If USB ports dont work, they cant copy anything to those devices. This is one method thats easy to implement.
Open the windows registry by typing regedit in the start menu. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\UsbStor
Change the value of the START DWORD and set it to 4. To enable USB devices you can change the value to 3.
How to prevent write access on USB disk
What if we dont want to block USB devices, maybe we need to allow files copied to the computer but not vice versa. Then we can disable write access for USB devices.
Open the windows registry by typing regedit in the start menu. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies
Create a new DWORD, name it as WriteProtect and set the value as 0 (zero). To enable write access set it to 1.
Other methods of blocking access to USB devices
We had written a post on how to use software and group policy to prevent computers in a network from using USB disks.
If you know any other methods for blocking USB that are useful to our readers, leave a comment below and share it with us.