Enabling or disabling USB ports in Windows 11 can be useful for security or administrative purposes. Here's how you can do it:
Method 1: Using Device Manager (Enable/Disable Individual Ports)
1. Right-click on the *Start* button and select *Device Manager* to open it.
2. Expand the *Universal Serial Bus controllers* section. This will display a list of all USB controllers and hubs.
3. To disable a specific USB port, right-click on the corresponding USB Root Hub (USB 3.0 or 3.1) and select **Disable device**. Confirm the action if prompted.
4. To enable a disabled USB port, right-click on the USB Root Hub and select **Enable device**.
Note: Disabling the USB Root Hub will disable all USB ports associated with it. Be cautious when using this method.
Method 2: Using Group Policy (For Windows Pro and Enterprise Editions)
*Note:* This method is only available in Windows 11 Pro and Enterprise editions.
1. Press `Win + R` to open the *Run* dialog box.
2. Type `gpedit.msc` and press Enter to open the Local Group Policy Editor.
3. Navigate to *Computer Configuration* - *Administrative Templates* - *System* - **Removable Storage Access**.
4. In the right pane, double-click on **"All Removable Storage classes: Deny all access"**.
5. Select the *"Enabled"* option to disable USB ports. Select *"Disabled"* or *"Not Configured"* to enable USB ports.
6. Click *"Apply"* and then *"OK"* to save the changes.
Method 3: Using Registry Editor (Advanced Users)
*Warning:* Modifying the Windows Registry can cause system instability if done incorrectly. Proceed with caution and consider creating a backup of your registry before making changes.
1. Press `Win + R` to open the *Run* dialog box.
2. Type `regedit` and press Enter to open the Registry Editor.
3. Navigate to the following registry key:
```
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
```
4. In the right pane, you will find a value named *"Start."*
To disable USB ports, set the *"Start"* value to *4* (hexadecimal).
To enable USB ports, set the *"Start"* value to *3* (hexadecimal).
5. Close the Registry Editor.
6. Restart your computer for the changes to take effect.
Remember that disabling USB ports can affect the functionality of your computer, and it's typically used in controlled environments or for security reasons. Use these methods with caution, and ensure you have the necessary permissions to make these changes on your computer.