I would prefer this method for everyone because it helps users to do the process of enabling and disabling the USB ports in fast, effective way irrespective of other methods, if the administrator is quite smart, the register setting will save more time.
Go to desktop and press “Win Button + R“. Now you need to type the command “regedit” and hit the “OK”button
Now you will be prompted to a window. So in that follow what is written
HIKEY_LOCAL_MACHINE ->SYSTEM -> CURRENT CONTROL SET -> SERVICES ->USBSTOR
Now you have just to find out START in the working area. In that, to Disable, just change the Value data with “4” or for Next time if you want to Enable your USB port again then Change it to “3” but remember after every task or changing the value Close your Registry Editor.
It's only for educational purpose only don't take revange
Go to desktop and press “Win Button + R“. Now you need to type the command “regedit” and hit the “OK”button
HIKEY_LOCAL_MACHINE ->SYSTEM -> CURRENT CONTROL SET -> SERVICES ->USBSTOR
Now you have just to find out START in the working area. In that, to Disable, just change the Value data with “4” or for Next time if you want to Enable your USB port again then Change it to “3” but remember after every task or changing the value Close your Registry Editor.
It's only for educational purpose only don't take revange