Monday, February 13, 2012

USB storage enable and disable

To Disable Storage
@echo off
REG add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f
@cls

To Enable Storage
@echo off
net start "IMAPI CD-Burning COM Service"
REG add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 3 /f
@cls

No comments:

Post a Comment