Sometimes we need to disable USB port on our Computer/Laptop because if we share our computer/laptop with someone, and he has bad attention and steal our important data or the user can have USB drive with malicious files that could destroy our data, then disabling the USB port is the best option to protect data.
We can disable our USB port by Registry Editor or by Device Manger.
Disable USB Port Using Registry Editor
Step-I: Click on Start and type run to open Run window, or press Windows+R to open Run window. A window will open as below.
Step-II: Type regedit and click on OK button.
Step-III: A Registry Editor window will open.
Step-IV: Expand HKEY_LOCAL_MACHINE by clicking on the arrow icon on the left side of HKEY_LOCAL_MACHINE.
Step-V: Expand SYSTEM>CurrentControlSet>Services as shown below.
Step-VI: Find USBSTOR under Services.
Step-VII: Double-click on start REG DWORD from the right side of USBSTOR.
Step-VIII: Change the value data to 4 and Base should be Hexadecimal selected and click on OK button.
Step-IX: Close the Registry Editor window and restart your system.
Disable USB Port Using Device Manager
Step-I: Click on Start Window and write Device Manager and click on it. A Device Manager window will open as below.
Step-II: Expand Universal Serial Bus Controllers by click on the arrow icon on the left side of Universal Serial Bus Controllers.
Step-III: Right click on Inter(R) USB 3.0 eXtensible Host Controller and click on disable.
Step-IV: A pop-up window will open with the message (Disable this device will cause it to stop functioning. Do you really want to disable it?). Click on Yes Button.
Step-V: When the USB port disables there will be shown a down arrow icon on the left side of Inter(R) USB 3.0 eXtensible Host Controller as shown below.