How to Disable USB Ports

Two Methods:WindowsMac OS X

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.

Method 1
Windows

  1. Image titled Disable USB Ports Step 1
    1
    Remove any USB mass storage devices connected to your computer. This does not include your keyboard or monitor.
  2. Image titled Disable USB Ports Step 2
    2
    Log into your computer as the administrator.
  3. Image titled Disable USB Ports Step 3
    3
    Press the Windows key + R. This opens the Run command line in all versions of Windows.
  4. Image titled Disable USB Ports Step 4
    4
    Type “regedit,” then press Enter. This opens Windows Registry.
  5. Image titled Disable USB Ports Step 5
    5
    Navigate to the following location in Windows Registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR. This folder controls USB storage on your computer.
  6. Image titled Disable USB Ports Step 6
    6
    Open the registry key labeled “Start.
  7. Image titled Disable USB Ports Step 7
    7
    Change the data value of the “Start” registry key from “3” to “4. This disables your computer’s USB ports.
  8. Image titled Disable USB Ports Step 8
    8
    Close 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

  1. Image titled Disable USB Ports Step 9
    1
    Log into your computer as the administrator.
  2. Image titled Disable USB Ports Step 10
    2
    Click on “Go” and select “Go To Folder.
  3. Image titled Disable USB Ports Step 11
    3
    Type “/System/Library/Extensions” into the dialog box, then click “Go. This opens the Extensions folder, where data for your USB ports are saved.
  4. Image titled Disable USB Ports Step 12
    4
    Locate 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.
  5. Image titled Disable USB Ports Step 13
    5
    Move both files to the Trash.
  6. Image titled Disable USB Ports Step 14
    6
    Right-click on Trash and select “Empty Trash.
  7. Image titled Disable USB Ports Step 15
    7
    Restart 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]

Article Info

Categories: Basic Computer Skills