您好,欢迎您访问高考在线!
距离2025高考还剩167
当前位置:首页 > 录取分数 > 正文

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

发布:2024-12-21 11:13:18 来源:本站原创 浏览:6641 手机版
注册表禁用USB端口教程_启关闭和启用
想要禁用USB可以使用组策略编辑器中的安全设置,如果你需要使用注册表来禁用USB端口,那么下面分享给大家比较简单的教程,包含了禁用USB端口和启用USB端口。方便大家在电脑上限制USB的使用,有需要的朋友可以一试。

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

注册表禁用USB端口:

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

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR]
"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_MACHINESYSTEMCurrentControlSetServicesUSBSTORSecurity]
"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_MACHINESYSTEMCurrentControlSetServicesUSBSTOREnum]
"Count"=dword:00000000
"NextInstance"=dword:00000000

注册表启用USB端口:

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

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR]
"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_MACHINESYSTEMCurrentControlSetServicesUSBSTORSecurity]
"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_MACHINESYSTEMCurrentControlSetServicesUSBSTOREnum]
"Count"=dword:00000000
"NextInstance"=dword:00000000

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

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

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

2、依次展开如下分支:

[HKEY_LOCAL_MACHINESYSTEMCurrentCntrolSetservicesUSBSTOR]

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

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

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

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

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

【免责声明】 本站为非营利性网站,本站所有文章内容均为网络采集或手工转载稿件,如相关图片、字体、音频、视频等内容侵犯您的版权或著作权,请及时与本站联系删除稿件。

图文资讯

最新资讯