禁用USB接口外接U盘及其他存储设备

禁用USB接口外接U盘及其他存储设备

通过修改注册表的方法,禁用电脑USB接口外接U盘,移动硬盘等其他存储设备,打开记事本拷贝以下代码,保存为“usb禁用.reg”文件。在电脑双击打开运行该文件以后,插上U盘或移动硬盘,电脑已经识别不到了。 (注:该方法不影响USB键盘和鼠标的正常使用哦!!!)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR]
"Start"=dword:00000004
"Type"=dword:00000001
"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 大容量存储驱动程序"
"DriverPackageId"="v_mscdsc.inf_amd64_neutral_8b1e6b55729c3283"
"BootFlags"=dword:00000004

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

如果想恢复USB接口可外接存储设备,可使用以下代码,保存为“usb启用.reg”文件,运行该文件USB即可恢复使用。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR]
"Start"=dword:00000003
"Type"=dword:00000001
"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 大容量存储驱动程序"
"DriverPackageId"="v_mscdsc.inf_amd64_neutral_8b1e6b55729c3283"
"BootFlags"=dword:00000004

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

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×