DISABLE PLUG AND PLAY DEVICES
Disable UnPnP Discovery Service
Open your registry and find the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV
Set the value of "Start" to "4" to disable the service, or "3" to enable it.
DISABLE USB PORTS OF COMPUTER
Disable Universal Plug and Play Device Host
Open your registry and find the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\upnphost
Set the value of "Start" to "4" to disable the service, or "3" to enable it.