While working on the project to protect the Computer from unauthorize external drive use.To do this i planned to disable all the input devices so that attacker cannot use it copy anything .
This small script is the solution for disabling the input devices.