您所在的位置:首页 - 应用教程 - 正文应用教程

注册表禁用USB端口教程(启关闭和启用)

宇哥资源 宇哥资源 03-19 【应用教程】 22人已围观

摘要想要禁用USB可以使用组策略编辑器中的安全设置,如果你需要使用注册表来禁用USB端口,那么下面分享给大家比较简单的教程,包含了禁用USB端口和启用USB端口。方便大家在电脑上限制USB的使用,有需要的朋友可以一试。注册表禁用USB端口:方法:将如下代码复制到一个文本文件里面,然后保存为XXX.reg注册表文件然后双击导入就可以了!WindowsRegistryEditorVersion5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentContro

想要禁用USB可以使用组策略编辑器中的安全设置,如果你需要使用注册表来禁用USB端口,那么下面分享给大家比较简单的教程,包含了禁用USB端口和启用USB端口。方便大家在电脑上限制USB的使用,有需要的朋友可以一试。

注册表禁用USB端口教程(启关闭和启用)

注册表禁用USB端口:

方法:将如下代码复制到一个文本文件里面,然后保存为XXX.reg注册表文件然后双击导入就可以了!

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Type"=dword:00000001
"Start"=dword:00000004
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\
  00,52,00,2e,00,53,00,59,00,53,00,00,00
"DisplayName"="USB 大容量存储设备"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
"Count"=dword:00000000
"NextInstance"=dword:00000000

 

注册表启用USB端口:

方法:将如下代码复制到一个文本文件里面,然后保存为XXX.reg就OK了!

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\
  00,52,00,2e,00,53,00,59,00,53,00,00,00
"DisplayName"="USB 大容量存储设备"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
"Count"=dword:00000000
"NextInstance"=dword:00000000

大家有没有发现其实这两个代码几乎一样,只是在"Start"=后面的内容稍有变动,开启的是"Start"=dword:00000003,禁用的是"Start"=dword:00000004  也可以手动操作如下教程
 

1、按下Win+R,输入:regedit 启动注册表编辑器;

注册表禁用USB端口教程(启关闭和启用)

2、依次展开如下分支:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentCntrolSet\services\USBSTOR]

注册表禁用USB端口教程(启关闭和启用)

3、在右侧的窗格中找到名为“Start”的DWORD值,双击,在弹出的编辑对话框中将其数值数据修改为十六位进制数值“4”。

注册表禁用USB端口教程(启关闭和启用)

4、点“确定”按钮并关闭注册表编辑器,重新启动计算机,使设置生效。重启后,当有人将USB存储设备连接到计算机时,虽然USB设备上的指示灯在正常闪烁,但在资源管理器当中就是无法找到其盘符,因此也就无法使用USB设备了,等同于被认为禁用USB。

以上方法大家可以自由选择都是比较简单的哦。

 

Tags: 应用教程大全

icp赣ICP备2023004049号-1 icp粤公网安备 44030902003287号
取消
微信二维码
支付宝二维码

目录[+]