5 Ways to Turn Off USB Storage Ports on Windows 11

The easiest way is to use the Registry Editor

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

If you want to prevent people from connecting USB devices and protect your data,, you need to turn off USB storage on your Windows computer. In this guide, we will discuss some of the easiest methods to do so. Read on!

How can I turn off USB storage ports on Windows 11?

1. Using the Registry Editor

Note icon NOTE
This method works if a USB storage device is installed on your computer; therefore, changing the registry can ensure the device will not work when anyone connects.
  1. Press Windows + R to open the Run window.Regedit RUN COMMAND - how to turn off usb storage (2)
  2. Type regedit and click OK to open the Registry Editor.
  3. First, you should back up the registry entries to import them if anything goes wrong. Go to File, and select Export from the context menu. In the following window, type in the file name and click Save.Export - how to turn off usb storage
  4. Navigate to this path:Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
  5. From the details pane on the right, locate Start DWORD and double-click it.how to turn off usb storage -
  6. For Value data, replace 3 with 4, select Hexadecimal, and click OK to save the changes.
  7. Close Registry Editor and restart your computer.

2. Using the File Explorer

Note icon NOTE
If the USB storage device is not already installed on your computer, you can deny permissions to %SystemRoot%\Inf\Usbstor.pnf and %SystemRoot%\Inf\Usbstor.inf files for a user or group and the local system account.

2.1 Add user or group to deny permissions

  1. Press Windows + R to open the Run window.System drive - Turn Off USB Storage Ports on Windows 11 
  2. Type %SystemRoot%\Inf and click OK to open the Inf folder in Windows File Explorer. Alternatively, you can follow this path: C:\Windows\INF\usbstor.pnf in Windows File Explorer; however, don’t forget to replace C with the system drive letter of your computer.
  3. Right-click the file and select Properties from the context menu.
  4. Go to the Security tab.
  5. Under the Group or user names section, click Edit or Advanced.Edit
  6. Click Add to add the user or group that you want to prevent from accessing USB ports.Add - Turn Off USB Storage Ports on Windows 11
  7. Type the name of the user or group and click Check Names to verify.ChecK Names
  8. Click OK.

2.2 Set deny permissions for the user/group you add

  1. Once the user or group is added to the Group or user names list, select it and click the Deny checkbox next to Full Control.Deny click Apply and click OK
  2. Click OK to apply the changes.

2.3 Add System account to the Deny list

  1. In the Usbstor.pnf properties window, go to the Security tab, locate and select SYSTEM account from the Group or user names list.
  2. Click the Edit button.
  3. Click Add to add the SYSTEM account if it is not listed.
  4. Next, click Check Names, then hit OK.
  5. Now select SYSTEM, and under the Permissions list for SYSTEM, Select Deny for Full Control option.CLick OK and Apply - Deny  - Turn Off USB Storage Ports on Windows 11
  6. Click OK and OK to close the window.

2.4 Set Deny Permissions for Usbstor.inf

  1. Navigate to this path: C: WINDOWSInfusbstor.infย in Windows File Explorer. Remember to replace C with the system drive letter.
  2. Right-click Usbstor.inf and select Properties from the context menu.
  3. Go to the Security tab and follow the steps mentioned in 2.1, 2.2, and 2.3 to deny permissions to access USB storage devices on the computer.

3. Using the Group Policy Editor

  1. Press Windows + R to open the Run window.GPEDIT MSC RUN - how to turn off usb storage
  2. Type gpedit.msc and click OK to open the Group Policy Editor.
  3. Navigate to this path: Computer Configuration\Administrative Templates\System\Removable Storage Access
  4. From the right pane, locate the Removable Disks: Deny execute access setting. Double-click it to open its properties.Removable Disks: Deny read access - Turn Off USB Storage Ports 
  5. Select Enabled, click Apply, then OK to save the changes.Enabled
  6. Now look for Removable Disks: Deny read access, and Removable Disks: Deny write access settings, and follow steps 4 and 5.
  7. Close Group Policy Editor and restart your PC.

4. Using the Device Manager

  1. Press Windows + R to open the Run window.Device Manager Run command - Turn Off USB Storage Ports on Windows 11
  2. Type devmgmt.msc and click OK to open the Device Manager.
  3. Locate Universal Serial Bus controllers and click it to expand the category.Disable device -
  4. Right-click on all the entries one by one and select Disable device for each entry. Click Yes to confirm the choice.

5. Using BIOS

  1. Save your work on the computer and restart your computer.
  2. Press the designated key to enter the BIOS/UEFI setup during the startup process. Usually, the keys are F2, F10, Del, or Esc. If unsure, you can type in the manufacturer’s name and search for it online.
  3. Once in BIOS, navigate the menu with the arrow keys on your keyboard.
  4. Locate USB Configuration. You can find them in categories like Advanced, Integrated Peripherals or Onboard devices.
  5. Look for options likeย USB Ports,ย USB Controller,ย and USB Legacy Support, and using the arrows, choose Disabled for the setting.
  6. Press F10 to save and exit the BIOS to restart your computer normally.
  7. If prompted, click Yes or OK to save the changes.

How can I turn off USB storage ports on Windows 10?

You can follow the steps mentioned above to quickly disable USB storage ports on your Windows 10 computer.

To conclude, you can disable ports on multiple computers using the Group Policy Editor. However, you can follow the Registry Editor to turn off removable storage access for individual devices.

If you want to enable the ports blocked by your administrator, you can use any of the methods mentioned above and reverse-engineer the steps. If you still need help, follow this guide.

In case the USB ports are open but the Windows 11 computer does not recognize the USB device, it could be a faulty driver; to learn more, read this guide.

If you have any questions or suggestions about the topic, feel free to mention them in the comments section below. We will be happy to help!

More about the topics: USB issues

User forum

0 messages