How to Disable USB Ports
Disabling USB ports on your computer helps protect important data from unauthorized access in the form of viruses, malware, hackers, and malicious third parties. USB ports can be disabled by editing Windows Registry, or by deleting USB extensions in Mac OS X.
Steps
Method 1 Windows
- 1Remove any USB mass storage devices connected to your computer. This does not include your keyboard or monitor.
- 2Log into your computer as the administrator.
- 3Press the Windows key + R. This opens the Run command line in all versions of Windows.
- 4Type “regedit,” then press Enter. This opens Windows Registry.
- 5Navigate to the following location in Windows Registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR. This folder controls USB storage on your computer.
- 6Open the registry key labeled “Start.”
- 7Change the data value of the “Start” registry key from “3” to “4.” This disables your computer’s USB ports.
- 8Close Windows Registry. Going forward, your computer will no longer detect USB storage.
- Repeat steps #1 through #8 and change “4” to “3” to enable your computer’s USB ports.[1]
Method 2 Mac OS X
- 1Log into your computer as the administrator.
- 2Click on “Go” and select “Go To Folder.”
- 3Type “/System/Library/Extensions” into the dialog box, then click “Go.” This opens the Extensions folder, where data for your USB ports are saved.
- 4Locate files named “IOUSBMassStorageClass.kext” and “IOFireWireSerialBusProtocolTransport.kext.” These files control USB mass storage only, and do not affect the USB ports for your keyboard or monitor.
- 5Move both files to the Trash.
- 6Right-click on Trash and select “Empty Trash.”
- 7Restart your computer. Your system’s USB ports will now be disabled.[2]
Warnings
- Changing values improperly in Windows Registry can result in errors or prevent your computer from booting up and running efficiently. Pay close attention when making changes to Windows Registry to avoid rendering your computer inoperable.
- Disabling the USB ports in Mac OS X permanently renders these ports inoperable unless you reinstall OS X or restore your computer to its original factory settings. Follow these steps to reinstall Mac OS X and restore disabled USB ports.[3]
Sources and Citations
Article Info
Categories: Basic Computer Skills