UNINSTALL command

The UNINSTALL command uninstalls the service passed as parameter to this command.

Syntax:

APP2SRV UNINSTALL /SN=name
  [/RUSR=user /RHOST=name/IP /RPWD=password]
ParameterDescription
SNRequired parameter that is the valid name of the service you want to uninstall. 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.