How to Disable USB Ports in a Windows PC?

Disable USB Ports in Windows

You must familiar with the term USB ports. This can be found on any desktop and laptop computers. This article is especially telling you the way to disable USB ports in any Windows PC.

Before we start, let us discuss about System USB ports.

However, you must be aware about USB ports on the computer, but still let me brief little about it. If somebody does not know about USB ports, this can help that person.

In computer language, a USB port stands for Universal Serial Bus port that helps USB devices to connect each other with the help of serial cable for communication between both devices.

By doing this, you can transfer any data digitally after a stable connection of both devices (computer and USB device). For example, you can use USB ports to connect a flash drive, USB keyboard or USB mouse.

Benefits of Disabling USB Ports

I am not denying that USB ports are useful. By using system USB ports, you can connect any flash/pen drive for data transfer; connect any USB printer, USB speakers, USB scanners, digital cameras for photos & video transfers.

Nevertheless, what if you do not use most of them and access your system for browsing or knowledge purpose only.

Several times, not intestinal, if some of your friend or family member connects their USB flash drive or camera just to transfer data, but whom know that the devices they connected to your system are not infected with viruses.

Most of the viruses come from data transfer devices such as pen drive.

Denying everyone not to connect USB devices, feels very awkward. Instead, you can disable USB ports easily. Following post will let you know, how simple is to disable computer USB ports.

Disable USB Ports with Windows Registry

Though, there are several methods, but i will tell you know by using registry editor.

Follow below given steps one-by-one and disable USB ports with the help of Windows registry editor.

As we are going to make a little change on Windows registry so, before we start, keep safe and side take a back of your registry then continue with below steps:

[Read: How to Backup and Restore Windows Registry?]

Most Important: Trick given below, may also disable the access of any USB connected peripheral devices. Therefore, do not follow below given steps if you have USB connected mouse or keyboard.

I have done some experiments to check this:

In my case, I have connected wireless mouse with its USB receiver to my laptop (Windows 10). I did all below steps and rest all USB ports were disabled, but my mouse is still functional.

Then, I tested on one of my Windows 7 Desktop, which has a Wireless USB connected keyboard, and a different USB wired mouse that is already connected.

Did below steps and my keyboard and mouse is working apart then, I connected a USB pen drive and it won’t recognize. This works for me.

Step 1. Press Win + R to open Run dialog box.

Once open type regedit and hit Enter button or click OK to open Windows Registry Editor.

Step 2. On Windows Registry Editor, we need to navigate to the path given below:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

  • To the right panel, you will see the key Start and its data value “3(Image 1)
  • Double click on Start key and Edit DWORD (32-bit) value will open on screen
  • Change value data from “3” to”4” in order to disable USB ports of your computer (Image 2)
disable USB ports
Image 1
Image 2

By doing above step, it will instantly effect on your Windows system.

Now, if you connected any USB pen drive or flash drive in this system, it will not detect.

Enable USB Ports or Make USB Ports Setting to Default

If you would like to enable USB ports back as it was working before then, reach on the same registry path given above on Step 2 and change value data to “3”.

This will make USB port settings to default and system USB ports will be functional.

This trick will work on Windows 7, Windows 8 and Windows 10 too.

It must be a good trick or a way to make your system unassailable for malware or virus spread through USB ports or any kind of malware attack to the Windows.

Disable USB Ports with Registry Click To Tweet

Share this post to help others!!

Leave a Reply