Skip to main content

How to Disable or Enable USB Ports from Registry & BIOS On a Computer

USB (Universal Serial Bus) is one of the important methods to send or receive information from a computer. In order to improve the safety of information stored on a PC, it is good to disable Universal Serial Bus for unauthorized users and it is a simple task if you have admin rights. In this tutorial, I would like to share one method to disable and enable them on a PC from the registry. Since registry editing is a sensitive task, I would like you to follow the steps carefully and strongly recommend you to take a registry backup before proceeding. If you are not the only admin of your computer, I recommend you to follow the BIOS method to block Universal Serial Bus on your computer. Steps to block them from BIOS are listed at the end of this tutorial.

Steps to Disable USB Ports from Registry

Steps to deactivate them on a PC from Windows registry are:
  1. Click on start
  2. Type regedit on Run window or Search and press enter. Now the registry editor opens
  3. Navigate to the following registry path
  4. Click on UsbStor and a list of attributes will be displayed on the right panel

    Disable USB Port on your computer
  5. Double click on start and set the hexadecimal value to 4 and click OK

Now the Universal Serial Bus on your PC is disabled. If you connect any USB device, your computer will not recognize them.

How to Enable USB Ports On Your Computer from Registry

To do this you need to follow the steps 1 to 4 and set 3 as the hexadecimal value for start. This will reverse the effect.

Disable USB Ports From BIOS for Other admins

As I explained before, to block Universal Serial Bus for other admins on your PC, you must deactivate it from BIOS. Disable the USB ports from BIOS and set a password for BIOS to prevent other admins to reverse the restriction. Here I assume other admins cannot remove and replace the CMOS battery to reset BIOS password.

To block Universal Serial Bus for other users with administrative privilege follow the steps below.

  1. Reboot your computer

  2. Press [F2] or [Del] as told in the motherboard manual while booting your PC

  3. Enter BIOS by entering BIOS password

  4. Select Advanced

  5. Select USB Configuration and press enter

  6. Select the option to disable

Enable USB Ports From BIOS

To enable Universal Serial Bus on your PC you need to enter BIOS and enable the USB Ports. The steps are the same except the last step. We need to enable them from the disabled state.

The above tip completely disables Universal Serial Bus on your PC but if you want to disable only writing files to devices connected to the USB ports of your computer, follow the steps provided in the link below.
How to Disable Writing files to USB Drives Connected to Your Computer

Sometimes due to various reasons registry editor may be disabled on your laptop. In that scenario, you cannot disable Universal Serial Bus on your laptop unless you need to unlock registry editor. To perform this follow the steps provided in the link below.
How to Enable Disabled Registry Editor on Your Computer

New Topics


Alvan said…
I can't change the value to "3"
cannot edit start : error writing te value's new content
please help
Siju George said…
@ Alvan,

Can you tell us what error message you are getting while trying to change the Hexadecimal value?

Have you taken Registry backup before starting the steps mentioned in the article?

About Author

My photo
Alex George
Alex George has Engineering graduation in Computer Science and an MBA in Finance. He had been working as a senior Network Engineer for ten years. His specialization is in Cisco products. Traveling is one of his hobbies and visited various places as part of his onsite work. He visited different places as part of his onsite work like New York, Dubai, London, etc. Right now Alex is a director of one of the leading career development firms in India, which trains students for UPSC, SSC, and PSC examinations. He guides a lot of students to get selection for various prestigious institutions like CBI, Income Tax Department, etc. Alex George is a stock market investor and a very active intraday trader. Engineering Background: He has a B.Tech in Computer Science and Engineering and passed different network and security courses like CCNA, CCNP (Security), CEH, and various Microsoft certifications. Finance Background: Alex has an MBA in Finance. He is an active intraday trader and a Share Market Investor. Webmaster Skills: Alex is a blogger since 2004. He has a working knowledge of HTML, CSS, PHP, and JavaScrip.

Recent Comments


Show more