大家好啊,上一次讲解了,disable the USB storage 今天当然是说Enable the USB storage
其实是一个很简单的dos操作指令
指令如下:
@echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v start /t reg_dword /d 3 /f"
@echo y| cacls "C:\WINDOWS\inf\usbstor.inf" /e /t /c /p administrators:f >nul
@echo Y|cacls "C:\WINDOWS\inf\usbstor.inf" /e /t /c /p system:r >nul
@echo Y|cacls "C:\WINDOWS\inf\usbstor.inf" /e /t /c /p users:r >nul
@echo Y|cacls "C:\WINDOWS\inf\usbstor.PNF" /e /t /c /p administrators:r >nul
@echo Y|cacls "C:\WINDOWS\inf\usbstor.PNF" /e /t /c /p system:r >nul
@echo Y|cacls "C:\WINDOWS\inf\usbstor.PNF" /e /t /c /p users:r >nul
echo. @pause
很详细的代码指令,如果你是高手的话,可以研究以下我为什么这样设置