Need to block USB's for all Computers

I need to block or Unblock USB devices using scripting

Thanks in Advance..

NTRao

September 3rd, 2015 12:59am

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

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 1:18am

Hi Sridhar,

Thanks for your replay...

Can you provide the code for blocking and unblocking usb port

Thanks in advance

NTRao

September 3rd, 2015 1:45am

The code was posted above. We do not do custom scripting on demand. Please read the forum guidelines.
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 2:38am

Please read the following:

September 3rd, 2015 12:58pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics