Hello.

To disable devices you need administrator rights. You can disable devices within a script with a microsoft tool (DEVCON.EXE)

Regards
Danny