STOP command

The STOP command stops the service passed to it as parameter and closes the applicationassociated with the service.

Syntax:

APP2SRV STOP /SN=name
       [/RUSR=user /RHOST=name/IP /RPWD=password]
ParameterDescription
SNRequired parameter that is the valid name of the service you want to install. Note: whitespaces (such as spaces, tabs and punctuation) are not allowed.
RHOSTOptional parameter that is the remote computer’s name or IP. This parameter is applicable only together with RUSR and RPWD parameters. For OEM License owners only.
RUSROptional parameter that is the administrator account name under which you want to login to the remote computer. This parameter is applicable only together with RHOST and RPWD parameters. For OEM License owners only.
RPWDOptional parameter that is the remote account password. This parameter is applicable only together with RHOST and RUSR parameters. For OEM License owners only.

Return value:

0 – if the command succeeds. Otherwise "-1" or the error code is returned.