C:\Documents and Settings\user>service /?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Controls services on a machine.
SYNTAX:
1. Service.vbs /L
[/S <server>][/U <username>][/W <password>]
[/O <outputfile>]
2. Service.vbs /G | /X | /R | /D | /M <StartMode>
/N <service>
[/S <server>][/U <username>][/W <password>]
[/O <outputfile>]
3. Service.vbs /I /E <execname> /N <service> [/C <DisplayName>]
[/S <server>][/U <username>][/W <password>]
[/O <outputfile>]
PARAMETER SPECIFIERS:
/L List all Services
/D List Service dependencies
/G Start a Service
/X Stop a Service
/R Remove a Service
/M Set the Service Mode
/I Install a service
/E The Full path and filename of the service
StartMode The Service Startup Setting.
Service A Service Name
DisplayName The Service name that appears in the listing/
server A machine name.
username The current user's name.
password Password of the current user.
outputfile The output file name.
EXAMPLE:
1. cscript Service.vbs /L /S MyMachine2
List installed services for the machine MyMachine2.
2. cscript Service.vbs /X /N snmp
Stops the snmp service on the current machine.