This Batch Script uses REG.exe Command-Line Tool to modify a specific Reigsty Key (Start) and set it's Data Value to 3.

This will disable all USB connectivity on the Windows machine (Server or Client) from which the script is executed.



This Batch Script must be run as "Administrator".


Supported OS

This REG.exe based-batch script can be run on the following OS version : 


Useful Information

If you want to re-enable USB Ports on your Windows machines, just edit the Batch file and change the "Start" Data Value from 4 to 3


Script Source Code 



#HK | Just Another IT Guy |