Most of the time we want to prevent users from attaching their USB drives, iPod to the office PC. For the same you can disable USB from BIOS, but due to this you can’t attach USB keyboard or mouse anymore. A simple registry trick can do the job to block USB devices other than keyboard & mouse

1. Open Registry Editor
2. In Registry Editor, navigate to the following registry key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

3. Locate the start key in the right pane & change its value to 4
(Note: To re-enable USB devices change the value back to 3)

Another trick is user can able to connect and read the data from USB drive but not able to copy anything on it.
To write protect usb devices
1. Open Registry Editor
2. In Registry Editor, navigate to the following registry key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies

3. Now add a new DWORD key WriteProtect in the right pane and assign the value as 0.
(Note: To grant writing access to USB devices change the value to 1)

Above settings are also tested on Windows XP & Windows Vista

Disabling USB Device in Windows 7

One thought on “Disabling USB Device in Windows 7

Leave a Reply

Your email address will not be published. Required fields are marked *