How to enable or disable USB Drives or Ports in Windows 7 / 8

How often you have witnessed blocked Pen drive or USB drive access in your work place or college or school? I believe many times; in fact every time you try to use the USB drive, you are not allowed, simply because the administrator has disabled USB drive detection on your Windows system. Again, how often has your data been stolen because someone connected an unauthorized USB to your computer and copied your files?  Well, you don’t need to worry because the solution to disable or enable USB Ports is pretty simple.

Restrict access to USB drives

There are 5 ways an administrator can prevent using of USB Drives

They are:

  1. Altering registry values for USB Mass Storage Devices.
  2. Disabling USB Ports from Device Manager.
  3. By Un-installing the USB Mass Storage Drivers
  4. Using third-party freeware
  5. Using Microsoft Fix It.

Lets us look at how we can fix these problems and enable USB on Windows 7 PC.

1. Enable or Disable USB Drives and Mass Storage Devices using Registry

If the administrator is smart then he would definitely do this to ensure a tight blockade. He would alter the settings through regedit command on run console. Now how do you unlock it ? You have to go right into where the administrator has been. Here is how.

  1. Go to Start > Run , type “regedit” and press enter to open the registry editor
  2. Navigate to the following key


In the right pane, select Start and change the value to 3. (The value 4 will disable USB Storage). Click OK. This will re-enable USB Ports and allow you to use USB or Pen drives.

2. Disable USB Ports from Device Manager

If you still don’t find your USB drive working, you may have to look into the Device Manager. The Administrator could have possibly disabled the USB port here. Check out for any possibility in the Device Manager and enable the disabled port by right clicking on selected one and click Enable.

3. Uninstall USB Mass Storage Drivers

If the authorities are really worried about security in the school they would take the extreme step of un-installing the USB Mass Storage Drivers. To make things work, just install the device drivers. Here is how you do it.

As when you plug-in your USB drive, Windows will check for drivers, if not found Windows will prompt you to install the driver. This would definitely unlock the Pen drive at your School or office.

4. Use USB Drive Disabler / Enabler

You can download and use a free tool USB Drive Disabler / Enabler which will allow you to easily enable or disable USB drives on your Windows computer.

5. Prevent users from connecting USB

If a USB storage device is already installed on your Windows computer, you can edit the Widnows Registry to ensure sure that the USB does not work when anyone connects it to the PC, using this Microsoft Fix it 50061. Check first if it applies to your version of the Windows operating system.

Please let us know if you have any questions or observations.

Posted by on , in Category Windows with Tags
Azharuddin Khan, being a technology enthusiastic, loves writing blogs and updating them. Currently pursuing his Bachelors in Information Technology, he also loves in extending support via providing hardware solutions.
  • hackerman1

    oh, is it April 1 today ?
    what a joke…
    are you trying to get a new career in standup-comedy ?
    you have completely forgotten one VERY important thing,
    you won´t be able to use any of those solutions that you posted above without ADMINISTRATIVE rights to the computer.

  • Caleb

    @hackerman1 It goes without saying that you require admin rights.

  • Anonymous

    There is probably a very good reason why your USB stick does not work at school or work. It’s never a good idea to encourage others to steal let alone help them to accomplish this.

    Do you have any more “cracks” to share with us? Maybe a guide to install pirated copies of Windows or how to steal wifi from your friends?

  • Anand Khanse

    There is nothing illegal about this post imo. Most of this has been documented on the net, including Microsoft/KB article/s. The post attempts to show how you can disable AND enable USB drives.

  • Anonymous

    It’s more to do with ethics than legalities. This is the Internet where everything is documented and available, the question is where do you draw the line between acceptable or unacceptable?

  • Khan Azharuddin12345

    Hackerman1…. If you dont have Admin rights on your PC. that means you cant open Command that you mean to say.. ? You dont have to be genius to open command prompt( using notepad). And once you have command prompt you can do wonders out there.
    And I am not telling you how you do it but passing a hint your way
    ” net user ” command is sufficient to do the stuff you want..

  • Ankitkaulmachama

    Hi Azharuddin, You have mentioned about a method in which you are saying uninstall the USB Mass Storage Drivers. Now I just wanted to ask where I can find these drivers in case I feel I want to enable USB devices again?

    Can we find them online??

  • Khan Azharuddin12345

    Hi Ankitkaulmachama
    If you uninstall the USB mass storage drivers , You can install it from your mobo driver CD.. If you are looking online then just right click on the USB mass storage and click install.. If u are looking for drivers online you can find them quite easily…
    I would recommend you to disable USB drivers than un-installing the driver.. It will ease your work to make things back to normal…thanks
    hope that helps…

  • Khan Azharuddin12345

    Hi Ankitkaulmachama
    If you uninstall the USB mass storage drivers , You can install it from your mobo driver CD.. If you are looking online then just right click on the USB mass storage and click install.. If u are looking for drivers online you can find them quite easily…
    I would recommend you to disable USB drivers than un-installing the driver.. It will ease your work to make things back to normal…thanks
    hope that helps…

  • Charly93

    Security freak or mind freak? What crack are you talking about!? You can use Control Panel to do the same “CRACK”!

  • omid Ajalli

    Tanks For Information

  • Xantes

    There is one more thing that disabling USB ports altogether – especially on a laptop – that have: web camera, a wireless module etc. all these that are built-in accessories and very important are PHYSICALLY connected to their motherboard AS USB CONNECTIONS although if you look inside your laptop they don’t have USB type coupling!

  • Sukhpreet Singh

    Goto HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies then their create a new key and name it as ‘WriteProtect’ without quotes then set its value 1 to diable USB ports and By changing its value to 0 enable your ports . .

    Very interesting fact that by using this trick i.e. by setting value to 1 . . data can only enter into your computer !! If you want to copy data to pen drive , or hard disk external , memory card etc . . then windows will display message ‘Media Is write Protected !! ” , but still u can copy data from these devices to internal hard disk . . .by again setting value to 0 , , all become normal again :) sorry for bad english . . hope this works on your side :) im using this trick from 2 years :)

  • Ksdhf

    Well, interesting question, but I doubt it corresponds to you to draw that line for everybody.

  • Ashishmehtad

    in device manager, under USB controllers, there is a yellow triangle coming on USB mass storage device, when i righht click and see properties, it shows me this msg ‘Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. (Code 19)”
    plzz help. i m facing lot of problem. help me.

  • Khan Azharuddin12345

    Please try install USB drivers from the Motherboard disk.. It seems they have been corrupted for some reason..
    Hope this helps..

  • Ashishmehtad

    sir, i dnt have the motherboard disk. :(
    can u tell me how can i download USB driver online. i am not able to do that.

  • Rahul

    thats all bullshit going around here… if i dont have admin rights to the pc how can i do the above steps… there should be first some tut to explain how to gain admin rights on a pc… all this shit is useless without that

  • Jai Kumar520775432

    Hi dear.

    My Some one friend is inserted window boot able CD in my CD ROM, and my window has been corrupted, it happened my time may data has been loosed every time. so how can i block my CD ROM that now body can format my system. if you can help then I really appreciate you.


  • Anna Murphy-2cx0rtg

    I tried all the suggestions, however, the USB still does not work on my office laptop. any more solutions?

  • Sandeep Kharat

    I COULD NOT FIND HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies


  • Faiz

    Please help me with this problem:
    The value in my registry is 3
    When I connect my USB the green icon shows in the system try but the drive don’t appear. When I enable it from the Device Manager the drive appears for a moment and then disappears… why is this happening? I uninstalled & reinstall the drivers as wekk. Can someone please help me with this!

  • H8nArrogance

    Are you some kind of cunt or something?

  • Muzzamil Khan

    Nice one and working…

  • Guest007

    I am using Dell Latitude.
    I have enabled USB port in Device Manager and changed regedit entries as well.
    I have the USB drivers but when I try to install them it fails saying some admin id is required, although I am admin user.This is because there is a file in C:WindowsSystem32driversUSBSTOR.SYS
    which has to be modified so that I can modify the user rights to Full Control, right now its Read Only, I cannot do this as well.
    I have tried pasting this file from some other machine but it does not allow me to paste any data, giving permission error.
    Any way out ?

  • Karpeac

    hi, I am Amol Karpe you go with this step

  • Blpalsaniya777

    Sir i want usb disable but i want use esb keyboard tell me

  • Priyankajrt

    Nice one and working…..vry nice

  • Ferin Malek

    Hey Faiz.

    Try once more and convert the drive letter to 4 first and then try. It should work.

  • Cosuna21

    my ports are blocked and i cant access any of the above folders or application to change the setting. i have to be an administrator. I tried the IntelliAdmin but i cant download it because i cant access my email on the computer. Is there any way i can unblock my ports???

  • Krishna Ariwala

    in my college usb ports are disabled by quick heal total security,how can i enable it?pls rply….

  • pwasim786

    Type in Run window regedit and click OK

    After registry editor Open Goes to the
    In the Right Pane Double Click on Start and Type in Value 4
    USB Port is Disabled
    Type Value 3 For Enable USB Port

    For Read Complete Article On this please visit

    Or Simply Download the Application Called USB Port Operator
    For Enable and Disable USB Port

  • Yuvi

    but In my college server block front panel/port . I done all above method I can’t unblock front USB … plz help me..

  • sakis

    Hello to everybody. Is it possible to disable/enable specific usb ports? One more question: is it possible to disable usb ports only for storage devices but to be fully functional for other devices like scanners and printers?

  • Rockstar

    I tried all the 4 ways to enable USB port; but still it didn’t work on my office laptop. On re-installing driver it opens up the access and immediately automatically port gets disable. Could you please suggest something on this?

  • Dale

    My USB quit working 6 months ago, I sent my netbook to Acer for repair. Acer changed the motherboard, but did not test the usb ports. They still did not work. I reinstalled Win 7 from the other section of my hard drive to no avail. It sure seems that this is a Windows problem, but microsoft will not help because this is OEM software, and I really think that Acer is brain dead on this problem. If anyone can help please contact me.


  • Arnold Endino

    what should i do if cannot edit the value

  • nmoor120

    what a great explanation my friend, thanks a lot

  • graham
  • Decon

    I am using windows7 in my desktop. but in my computer USB mouse enable but pen drive not support why ?

  • StupidSlayer

    Are you some kind of stupid or some show off? Dumbass.. When you ask someone to meet you, you dont need to specify to come dressed up as well.

  • Ramineni Ravi Teja

    how to lock usb drive without using any software

  • Nabeel

    I have reached to “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices” as you can see in the following screenshot:
    But after this, it does not show “usbstor”…Yes you can have a look for proof:
    Can anyone explain me why I can’t I see “usbstor” option??????????????????

  • Quantumpcsupport

    The first 2 ways of disabling USB port is excellent and i personally used and gave tips to many. Un-installing he USB device driver is a foolish. People may also use the 3rd way but not necessary to install another software or tool for doing this.

  • ProtectandAccess

    I read all the 4 ways to disable USB port. Except procedure 4 i have tried all others and i am successful in all the cases. This USB disable feature is extremely useful for data security. Common users have no idea about this. So your data is safe from others.

  • Kevin

    This doesn’t stop stealing or hacking. I find it funny that they disable USB ports and yet you still have access your your online cloud storage spaces. It just shows how system admins are so behind in times.
    Not to speak that it is not hard at all to get Administrator access on a computer. Specially when the System Admins just disabled the Administrator on the computer in question.

  • Kevin

    There is nothing unethical in writing and posting about how to get around device’s security. It is ethical in sharing information, so that we can learn how something works and then learn to either fix them or question our perspective of the purpose/s of restricting. Specially when people have better ways of getting around the “security” like using cloud storage.
    Another security that we post online to get around is the unrooted Androids. The only true argument that you can stand on for unrooted Androids is to protect users from ourselves. But cases like the AT&T Galaxy Note 3 GPS, there is a real need of rooted device, As well as many other reasons for rooting Androids,
    Learning and educating on how to get around security is no unethical and it has its place being posted online.

  • Kevin

    The UniBlue advertisement is bad news. Don’t fall for it. Should be taken down from this site. Just saying.

  • Kiran kumar

    Its a good article… If a layman by mistake he uninstalled USB or something happens to the system, then this kind of article can save their time..

  • ram

    very nice and precise solution and advice. thanks

  • ram

    bakwaas band kar bhondu…………….this is known to everyone.

  • Dilbag Koundal

    Wonderful info. thanks dear.

    keep posting and tell me how to write Auto Backup script for Backing up files and Emails automatically daily

  • Usman Tufail

    For those who have lost their
    windows 7 password, here is the trick which can help you sign in windows 7
    without providing lost password, this is genuine and authentic: visit here:

  • PissedOffDude

    That software sucks! It’s a 15 days trial and I can’t find ANY way to uninstall it now. Even Revo Uninstaller doesn’t see it. But it’s there on the tray now… sht!

  • Anand Khanse

    USB Drive Disabler / Enabler is a freeware portable tool.

  • Abhishek

    hi I have tried 5 option and now I want to go back to normal… Please advise how can we enable USB again after applying method 5….

  • Anand Khanse

    Manually edit the Registry. See Point 1 above.

  • praji k

    Method 1 is working…but when i use any other usb drive..the system detects it & can access it…after this i check the registery, the value automatically chaged to 3. win7 professional…

  • praveen bansal

    when i try these steps , my pc demands admin password which i don’t have thn tell me another way to unblock usb port or mail me on—–>>>

  • Nishant

    Thanks for the help it worked……

  • kumar

    particularly two of my external storage devices are not detected

  • I am PC

    Great article thanks for the help.

  • k.venkata sai

    good morning sir, i want to know how to disable usb ports in my computer? i have 4 usb ports in it, i want to disable 3 ports and i want to give security code to another port. please tell me how in step by step procedure to my mail id is

  • Antonis

    he says:
    There are 5 ways an administrator can prevent using of USB Drives.

  • Gadgets Informer

    Windows 7 has ReadyBoost feature which uses USB Flash Drive as an external hard disk cache, it improves optimal performance of PC or Laptop. If your PC or Laptop is using SSD (Solid State Drive) as a primary disk your machine will not give you performance improvement, however the ReadyBoost will be disabled automatically. ReadyBoost supports specific type of external disk drives i.e. USB Memory Sticks, SD Cards and CF Cards.

    There are some requirements which must meet with these conditions:


  • Ahmed Al-Bedri

    Thanks, that was helpful.

  • Tarunveer Singh

    I have all the settings enabled by default to allow anyone to run a usb flash drive on my computer but still I can’t open any usb flash drive that i plug in to my laptop.
    When I plug in a flash drive into my laptop it doesn’t show on my computer but i have changed the letters, formatted the drive, even bought a new drive to test but still cant open it.
    It is shown in that safely remove hardware dialog box that appears when you connect a flash drive to your computer but still it can’t be opened.
    I have USB Disk Security installed on my system which gives an alternate link to open the drive but when I click on it it says that due to restrictions set on this computer by administrator you cannot open this drive.

    I had recently installed windows 7 ultimate on my laptop.
    Before that there was no such problem.

  • Biswajit Das

    You can see this post:

  • Aditya Kanugo

    HEY AZHAR , The first method using the registry will work only till we dont attach a new usb device (pen drive or dongle) . A device which is connected for the first time to the computer installs the driver for readying the device to get usable BUT MEANWHILE IT ALSO RESETS THE REGISTRY VALUE BACK TO 3 ! And u r back to square one.
    Using the Device manager option disables the device and not the hub.
    Only buying third party seems to offer full solution if we want to bar all USB devices(leaving keyboard, mouse ofcourse) to computer.
    Any other option you have in mind?

  • nadeem shaikh

    whats the use of posting this when one is not the admin of the system

  • unCHOSENone

    microsoft fix it works great.. it detects usb port that’s not working.. good thing i somehow sneak through admin rights…

  • chagso336 .

    thank you so much, save my life today, all my usb got disable and I had no clue what had happened. Thank goodness it was under Device Manager USB Root Hub (xHCI) which gotten disable for some reason



  • Surya TeJa

    You are right!!

  • Azharuddin@TWC FATHER


  • Azharuddin@TWC FATHER

    Azharuddin Khan do you wanna suck my cock ???

  • rakesh

    I have admin rights but i try to run regedit, it says that registry editing is disable by your adminstrator, is there any other way of connecting my hard disk to my laptop?

  • htuR aleakiM oznolA

    try this:
    make a folder and copy and paste the code.

  • aravind

    i read all the above but 4 steps follow them but no react from this? any idea

  • Recent Comments