You should be able to create a bat file to disable/enable devices, but you need to be really careful because one force move and you can have severe problems.
Nirsoft - Using DevManView to enable/disable devices
Nirsoft - Using DevManView to enable/disable devices