Disable USB port - VIRUS KILLS

How To disable USB Port in Window 10 PC

In this blog we will cover, how can we tend to change or Disable the USB ports of Computer system. This can be helpful and definitely useful within the share networks systems like Schools, colleges, or Universities Labs however not restricted to it but Government organizations and Private sectors companies also relies on and implement high-cost protection firewalls in order to protect their systems from Malware Virus attack.

The USB is one of the foremost best and quick medium of spreading Virus in millisecond to the Window system preprocessor files. It means that which files would you browse, the virus file would automatically run it process function and occupy place at that folder.

computer, virus, trojan-1446108.jpg
anonymous, hacker, network-2821433.jpg
hacker, anonymous mask, anonymous-1811568.jpg

For example, we have about 24,000 folders on our hard-disk then its means that an extra 24,000 of bugs additionally occupy their space on the hard-disk, not only that but it also block the system interval time which cause the delay of performing tasks on computer system

One of the foremost known virus type Trojan also known as “USB shortcut virus” that infects the USB drive and makes all the files in an exceedingly USB drive became un-accessible. These Trojan hides all of your files and replaces them with the shortcuts having the same name. These shortcut viruses can easily spread the virus in all the program files once their links clicked by user.

virus, virus warning, computer virus-4392224.jpg

Today, we will cover how can we enable or even disable USB port in Window 10 PC by using 3 different methods, which are probably.

  • How to disable USB using Device Manager
  • How to disable USB via Registry
  • How to disable USB via Command Prompt
  • Conclusion – The way to defend from dangerous virus

Disable USB Port using Device Manager

  1. Click the Start button and type “device manager” or “devmgmt” and click open to launch the device manager services
Device Manager - devmgmt

2. Once Device Manager opens, there you will find a list of Universal Serial Bus controllers USB ports on your computer. 

Universal Serial Bus

3. Right-click on a USB port which you want to disable, then click “Disable device”

Universal Serial Bus Disable


click "Enable device" if you want to re-Enable again.

To "re-Enable"USB port

Right-click each USB port separately, then click "Enable device".

  1. Right-click each USB port, then click "Enable

Disable USB using regedit Registry

  1. Press Window + R button to start Run command, Then type regedit in a Run Window popup; like show below
regedit command


registry editor

3. Click on “SYSTEM

registry editor HKEY Local MAchine

4. Locate the File Path:  SYSTEM > CurrentControlSet > Services > USBSTOR , here find the “Start file” within the right pane and double-click on it.

registry editor USBSTOR

5. The default value under Value data: will be 3, shows the port is Enabled.

registry editor - edit DWord

6. Change the Value data from 3 to 4, press OK button to disable USB port.

registry editor - edit DWord to 4

7. If you’d like to enable it again, change the value data to “3” and save.

Disable USB using Command Prompt

Utilizing the “command Prompt” application is certainly an effective and easy method of enabling USB ports in Windows OS. To enable USB port using the “Command Prompt” in Windows 10

  1. Open Command prompt by pressing Window + R button to start Run command

Then type   cmd in a Run Window popup; like show below

Run command

“or” Go to the Windows search bar and type   cmd To Launch the “Command Prompt”.

2. Type the below command in command prompt console window:

reg add HKLMSystem/CurrentControlSet/Services/UsbStor /v "Start" /t REG_DWORD /d "4”

then press “Enter”, It will disable the USB port in your Windows 10 PC.

Console cmd for USBSTOR On OFF


Enter “3” instead of “4”, If you want to enable USB ports.

To "re-Enable"USB port



How to prevent bad USB attacks?

  1. Keep personal and work-related USB sticks separately.
  2. If you don’t know where the USB drive is coming from, don’t use it.
  3. Occasionally change and update your USB keys.
  4. Regularly scan your USB drives and devices with an antivirus.


Relevant Posts

Leave a Comment