sudo disableUSB.sh
sudo disableUSB.sh <targetVolume> <computerName> <currentUsername>
This script disables the USB drivers, thereby disabling all functionality of the USB ports. After running this script, the USB drivers will be moved to: /Library/Application Support/JAMF/DisabledExtensions/ This way, the USB drivers could be re-enabled in the future. After running this script, the machine will need to be rebooted for the settings to take effect.