风一样的男孩 发表于 2010-12-25 10:20:49

禁用/开启USB的批处理命令

禁用/开启USB的批处理命令

:lockusb
@reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor" /v Start /t reg_dword /d 4 /f
echo USB设备禁用成功!!!所有在禁用后插入的USB设备将无法使用!!!
pause


:unlockusb
@reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor" /v Start /t reg_dword /d 3 /f
echo USB设备启用成功!!!一切USB设备将可以使用.
pause
页: [1]
查看完整版本: 禁用/开启USB的批处理命令