Saturday, March 26, 2011


How To Enable Or Disable USB Pendrive Access:
As pendrive is main source of viruses through which our machine is affected.

Sometimes it may be possible that we want to make our USB port inaccessible, may be to avoid unauthenticated use or to be safe from viruses. 

So there is a Registry trick through which you can Enable or Disable USB port access.
                                                
Method 1(Using Registry)
To disable the access to USB port:

1. Click Start–>Run.
2. Type regedit, and then click OK.
3. Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor

4. In the right pane, double-click Start.
5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click Ok.
6. Quit Registry Editor.
7.Restart your machine to reload your registry.

To re-enable a disabled port:
1. Click Start–>Run.
2. Type regedit, and then click OK.
3. Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor

4. In the right pane, double-click Start.
5. In the Value data box, type 3, click Hexadecimal (if it is not already selected), and then click Ok.
6. Quit Registry Editor.
7.Restart your machine to reload your registry.

Method 2 (Using Notepad)
  • Open notepad
To disable the access to USB port:
To Disable USB Port Copy and paste the below code then save it as “disableUSB.reg”

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
“Start”=dword:00000004
  • Then double click disableUSB.reg file and it will ask do you want to add the information to registry.
  • Click yes.
  • Restart your machine to reload your registry.

To re-enable a disabled port:
If you wish to Enable USB Port then Copy & Paste the Below Code and save it as “enableUSB.reg”

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
“Start”=dword:00000003
  • Then double click enableUSB.reg file and it will ask do you want to add the information to registry.
  • Click yes.
  • Restart your machine to reload your registry.


No comments:

Post a Comment