Is there a way to programmatically disable usb storage devices from working while still keeping usb ports functional for other types of devices like keyboards and mice?
Easiest way would be to create a .reg file with your changed registry values and then use WA to run a dos command like this:
regedit.exe /s pathto.regfile