小柯柯 发表于 2011-10-30 12:06:24

禁用电脑USB和启用USB命令

使用的BAT文件命令是

@echo off
reg add "HKEY_LOCAL_ MACHINESYSTEMCurrentControlSet ControlStorageDevicePolicies“ /v WriteProtect /t reg_dword /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t reg_dword /d 4 /f
copy %Windir%\inf\usbstor.inf %Windir%\usbstor.inf /y >nul
copy %Windir%\inf\usbstor.pnf %Windir%\usbstor.pnf /y >nul
del %Windir%\inf\usbstor.pnf /q/f >nul
del %Windir%\inf\usbstor.inf /q/f >nul
@echo on

解除命令
@echo off
reg delete "HKEY_LOCAL_ MACHINESYSTEMCurrentControlSet ControlStorageDevicePolicies“ /v WriteProtect/f
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start/f
copy %Windir%\usbstor.inf %Windir%\inf\usbstor.inf/y >nul
copy %Windir%\usbstor.pnf%Windir%\inf\usbstor.pnf /y >nul
@echo on
页: [1]
查看完整版本: 禁用电脑USB和启用USB命令

请大家牢记南瓜园网址 www.nan2008.com