1. To list installed devices:
Device.Vbs /L [/S server] [/U username] [/W password] [/O outputfile]
2. To start, stop, remove, or set the mode of a device:
Device.Vbs /G | /X | /R | /Mstartmode [/D Device] [/S server] [/U username] [/W password] [/O outputfile]
3. To install a device:
Device.Vbs /I /D Device [/NDisplayName] [/S server] [/U username] [/W password] [/O outputfile]
Where:
Caution
Misusing this script might cause the operating system to become unstable.