Device.vbs Syntax

command promptOpen command prompt now.


1. To list installed devices:

One StepDevice.Vbs /L [/S server] [/U username] [/W password] [/O outputfile]

2. To start, stop, remove, or set the mode of a device:

One StepDevice.Vbs /G | /X | /R | /Mstartmode [/D Device] [/S server] [/U username] [/W password] [/O outputfile]

3. To install a device:

One StepDevice.Vbs /I /D Device [/NDisplayName] [/S server] [/U username] [/W password] [/O outputfile]

Where:

/L
lists all devices available.
/G
starts a device.
/X
stops a device.
/R
removes a device.
/M
sets the device mode.
/I
installs a device.
Startmode
is the device startup setting.
Device
is the full name and path of the device.
DisplayName
is the device name that appears in the directory listing.
server
is a computer name.
outputfile
is the output file name.
username and password
is the user name and password of the current user.

caution-icon

Caution

Misusing this script might cause the operating system to become unstable.