Uncategorized

Enable disable USB port using registry editor

Sending
User Rating 4.67 (3 votes)

When I was in college, many times I needed to disable system's USB port so that nobody other than me can use that port. So what I was doing is simply editing registry editor for USB port everytime. When I had to use it, I was enabling it else I would be keeping it inactive and would rather say to my friends that "buddy! USB port has some problem in my system :(" 

I know you might have seen such a common topic here there always but whats the harm in keeping such stuffs in our site too! So I shared it here (may be little bit late, but i am sure it will still help many people from our blog :))
Now the trick lies here in registry editor USBSTOR keyword which is under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services To disable the access to USB port, in Vista/Windows XP and 2000, follow the steps below  (I have not tested it on Win 7. Please someone verify it and let us know)

1. Click Start, and then click Run.
2. In the Open box, 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 (REG_DWORD), click Hexadecimal (if it is not already selected), and then click OK. 6. Quit Registry Editor.

To re-enable a disabled port, follow these steps below:
1. Click Start, and then click Run.
2. In the Open box, 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. Or else If you are lazy person like me ๐Ÿ™‚ then just save two different .reg files one for enabling and other for disabling purpose.

Steps To make one click working for enbaleUSB:
1. Open Your favorite editor or simply notepad
2. Type these lines there: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] "Start"="3"
3. Save it as enableUSB.reg (You could save it as anything but for our comfortness I wrote like that. extension should be .reg anyhow)

In the same way to disable USB port follow these steps:
1. Open Your favorite editor or simply notepad
2. Type these lines there: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] "Start"="4"
3.Save it as disableUSB.reg

16 Comments

  1. This is really interesting, You’re a very skilled blogger. I’ve joined your rss feed and look forward to seeking more of your excellent post. Also, I have shared your website in my social networks!

  2. Press winkey + R
    Type gpedit.msc

    1. Go to the Group Policy Editor
    2. In That go to the User Configuration >> Administrative Templates >> System >> Prevent Access to Registry Editing Tools
    3. Then Click on the Disabled.
    4. Registry Editor will be Enabled and its cant Give the message "Registry Editing has been disabled by your Administrator".
    5. Now you Disable Prevent Access to Registry Editing tools To your computers user.

    Or Simply Download the Application Called REGISTRY EDITOR HANDLER From http://softlinkplanet.blogspot.in/2012/12/registry-editor-handler.html

  3. Hi I followed the above registry process and could not enable the USB port. There was this error msg saying ‘CANNOT EDIT START : ERROR WRIRITNG THE VALUE’S NEW CONTENTS.’ ๐Ÿ™

    Pls let me know a solution for this. Thanking you in advance. ๐Ÿ™‚

  4. Hi Ranjeewa,
    Are you using Windows 7 or higher and did you check if the user have proper privilege to change anything in regedit?

    Open cmd with admin privilege instead of just type cmd in run prompt, try run as /user:administrator in cmd

Share your Thoughts