Leave a comment

Disable Enable USB (Windows Users)

1)  Registory Changes:

To Disable USB:

reg add HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v “Start” /t REG_DWORD /d “4” /f

To enable USB:

reg add HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v “Start” /t REG_DWORD /d “3” /f

2) Files Permission (Admin Access)

  • Usbstor.pnf
  • Usbstor.inf

Deny: To deny usb for particular user please enter user name using admin right for below command:


cacls %windir%\Inf\Usbstor.pnf /d user

cacls %windir%\Inf\Usbstor.inf /d user

Allow:

To enable use

cacls %windir%\Inf\Usbstor.pnf /p user:R

cacls %windir%\Inf\Usbstor.inf /p user:R

 

Leave a Reply

Your email address will not be published. Required fields are marked *