Method 1: Disable USB Ports Using Device Manager
Device Manager is a handy utility that lets you manage all the hardware devices connected to your system. Here’s how you can use it to disable specific USB ports on your Windows 10 or 11 computer:
Step 1: Right-click on the Start icon and select Device Manager from the list.
Step 2: Double-click Universal Serial Bus controllers to expand it. Right-click the USB port you want to turn off and select Disable device.
You can repeat the above steps to disable other USB ports on your PC. Later, if you want to re-enable a USB port, right-click on it and select Enable device.
Method 2: Disable USB Ports With Registry Editor
Another way to disable USB ports on Windows is through the Registry Editor. However, since registry files contain crucial configurations for Windows and its apps, it’s important to exercise caution while making changes.
Step 1: Click the search icon on the taskbar, type in registry editor, and select Run as administrator.
Step 2: Paste the following path in the address bar at the top and press Enter.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\USBSTOR
Step 3: Double-click the Start DWORD, type 4 in the Value data field, and click OK.
Restart your PC after this, and your USB ports will be disabled. If you wish to re-enable the USB ports later, repeat the steps outlined above and set the value data of the Start DWORD to 3.
Method 3: Disable USB Ports With Group Policy Editor
Those using the Professional, Education, or Enterprise editions of Windows can disable a PC’s USB ports via the Local Group Policy Editor, too. Here are the steps for the same.
Step 1: Press the Windows + R keyboard shortcut to open the Run dialog box. Type gpedit.msc in the text box and press OK.
Step 2: Use the left pane to navigate to the following folder:
Computer Configuration\Administrative Templates\System\Removable Storage Access
Step 3: Double-click the All Removable Storage classes: Deny all access policy on your right.
Step 4: Select the Enabled option and hit Apply, followed by OK.
Step 5: Similarly, enable the Removable Disks: Deny execute access, Removable Disks: Deny read access, and Removable Disks: Deny write access policies.
Once you complete the above steps, the USB ports on your computer will stop working. You can get them working again by setting the above-mentioned policies to Not Configured or Disabled.
Method 4: Disable USB Ports via the Command Prompt
You can also run a command to quickly disable USB ports on a PC. Here’s how:
Step 1: Right-click on the Start icon and select Terminal (Admin) from the list.
Step 2: Type the following command in the console and press Enter.
reg add HKLM\System\CurrentControlSet\Services\cdrom /t REG_DWORD /v "Start" /d 4 /f
To re-enable the USB ports later, you can use the following command:
reg add HKLM\System\CurrentControlSet\Services\cdrom /t REG_DWORD /v "Start" /d 1 /f
以上是4 Ways to Disable USB Ports on Windows的详细内容。更多信息请关注PHP中文网其他相关文章!

ACER PD163Q双便携式显示器:连通性噩梦 我对Acer PD163Q寄予厚望。双重便携式显示器的概念是通过单个电缆方便地连接的,非常吸引人。 不幸的是,这个诱人的想法quic

减少眼睛劳累并使用监视器灯条增亮工作空间! 这些方便的小工具调节了亮度和色温,有些甚至可以自动降低。 此更新的评论(03/04/2025)突出了各种需求的首选。 本学

升级到Windows 11:增强您的PC游戏体验 Windows 11提供令人兴奋的新游戏功能,可显着改善您的PC游戏体验。 对于从Windows 10移动的任何PC游戏玩家来说,此升级值得考虑。 自动HDR:Eleva

目录在使用大型文件时,目录是一个总体上改变游戏的人 - 它可以使所有内容都井井有条且易于浏览。不幸的是,与Word不同,Microsoft Excel没有一个简单的“目录”按钮,它添加了T

Alienware AW3225QF:最佳曲面4K显示器,值得入手吗? Alienware AW3225QF被誉为最佳曲面4K显示器,其强大的性能毋庸置疑。极速响应时间、惊艳的HDR效果和无限对比度,再加上出色的色彩表现,都是这款显示器的优势所在。虽然主要面向游戏玩家,但如果能接受OLED的不足,它也同样适合追求高效率的办公人士。 宽屏显示器不仅深受游戏玩家喜爱,也受到重视生产力提升用户的青睐。它们非常适合工作,并且能提升任何人的桌面体验。这款Alienware显示器价格通常较高,但目前正享受

ReactOS 0.4.15包括新的存储驱动程序,这应该有助于总体稳定性和UDB驱动器兼容性,以及用于网络的新驱动因素。字体支持,桌面外壳,Windows API,主题和文件也有许多更新


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

适用于 Eclipse 的 SAP NetWeaver 服务器适配器
将Eclipse与SAP NetWeaver应用服务器集成。

Atom编辑器mac版下载
最流行的的开源编辑器

PhpStorm Mac 版本
最新(2018.2.1 )专业的PHP集成开发工具