Service.vbs Syntax

command promptOpen command prompt now.


1. To list available services

One StepService.vbs /L [/S server] [/U username] [/W password] [/O outputfile]

2. To start, stop, remove, list dependencies, or set the startmode of a service

One StepService.vbs /G | /X | /R | /D | /M StartMode /N service [/S server] [/U username] [/W password] [/O outputfile]

3. To install a service

One StepService.vbs /I /E execname /N service [/C DisplayName] [/S server] [/U username] [/W password] [/O outputfile]

Where:

/L
lists services on a computer.
/D
lists service dependencies.
/G
starts services on a computer.
/X
stops services on a computer.
/M
sets the service mode.
/I
installs a service.
/E
is the full path and filename of the service.
StartMode
is the service startup setting.
Service
is the name of the service to be administered.
DisplayName
is the service name that appears in the listing.
server
is a computer name.
outputfile
is the output file name.
username and password
are the user name and password of the current user.