Two options are given below. One for Disabling USB drivescompletely and the other option is for disabling only write acces...
OPTION 2: Disabling only write access to the pen drive. You can readfrom the pen drive, but not write to it.The same can b...
Upcoming SlideShare
Loading in …5
×

Disabling usb devices

808 views

Published on

Disabling USB Storage

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
808
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Disabling usb devices

  1. 1. Two options are given below. One for Disabling USB drivescompletely and the other option is for disabling only write access to USBdrives, however you can read from USB drives.OPTION 1: Disabling USB storage completely. No USB drives can beaccessed from your PC.Click start. Type regedit.Scroll down to HKLMsystemcurrentcontrolsetservicesUSBStor.In the right pane click on start and change value of 3 (default) to 4.Close regedit.Now, no USB drives can be accessed on your PC. To re-enable USB drives, changethe value back to 3. This only disables mass storage USB drives and not the USBkeyboard/mouse/printers.The same can be done automatically by creating a script file as under:Open notepad. Type the following:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesUSBSTOR]“Start”=dword:00000003Save this file as a .reg file. You may name it as EnableUSB.regNow again open note pad and type the same lines but change the start value to00000004.Save the file as DisableUSB.regNow you have two files – one for enabling and other for disabling USB drives. By simplydouble clicking on the files, you can enable/disable access to USB drives.Remember to restart PC after executing the file.
  2. 2. OPTION 2: Disabling only write access to the pen drive. You can readfrom the pen drive, but not write to it.The same can be done automatically by creating a script file as under:Open notepad. Type the following:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies]“WriteProtect”=dword:00000000Save this file as a .reg file. You may name it as EnableUSBWrite.regNow again open note pad and type the same lines but change the WriteProtect value to00000001.Save the file as DisableUSBWrite.regNow you have two files – one for enabling and other for disabling USB write access. Bysimply double clicking on the files, you can enable/disable write access to USB drives.You can install USB drives and read data from it, but you cannot copy anything to it.Remember to restart PC after executing the file. Even after disabling USB drivers, if drivers are automaticallyloaded when a user plugs in a USB drive, the same can be disabled inthe following method:Go to Control panel – Folder options – View – Enable show hidden files andfolders.Open C:WindowsInfUSBStor.inf. Right click USBStor.inf – go to security tab –Remove all users from the ACL of this file except Administrator. Save changes. Nowwhen a normal user plugs a USB drive, the device drivers will not be automaticallyloaded.

×