I need to block or Unblock USB devices using scripting
Thanks in Advance..
NTRao
Technology Tips and News
I need to block or Unblock USB devices using scripting
Thanks in Advance..
NTRao
Hi
you can disable the Usb port using GPO, it is easy to manage.
however you can do it by script by changing reg key using below command.
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\USBSTOR" -name start -Value 4
you can use -scriptblock to run on remote server.
Thanks
Hi Sridhar,
Thanks for your replay...
Can you provide the code for blocking and unblocking usb port
Thanks in advance
NTRao
Please read the following: