当前位置:首页  电脑知识  系统

禁用电脑USB存储设备,USB键鼠不受影响的解决方案

禁用电脑USB存储设备,USB键鼠不受影响的解决方案

日期:2022-05-17 17:27:48来源:浏览:
简便方法:
 
注册表[HKEY_LOCAL_MACHINE/SYSTEM/CurrentCntrolSet/Services/USBSTOR]中,在右侧的窗格中找到名为“Start”的DWORD值,双击,在弹出的编辑对话框中将其数值数据修改为十六位进制数值“4”。
 
更简单的方法:
禁用移动存储设备,将以下文字存储为lockusb.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 Mass Storage Driver"
 
[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
 
启用移动存储设备,将以下文字存储为unlockusb.reg,双击导入。
 
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 Mass Storage Driver"
 
[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 
相关推荐