[Windows]

endmqsvc (end IBM MQ service)

End the IBM® MQ service on Windows.

If you are running IBM MQ on Windows systems with User Account Control (UAC) enabled, you must invoke endmqsvc with elevated privileges. To open an elevated command prompt, right click the command prompt icon and select Run as administrator (see Authority to administer IBM MQ on AIX®, Linux®, and Windows).

Run the command to end the service, if the service is running.

Restart the service for IBM MQ processes to pick up a new environment, including new security definitions.

Syntax

endmqsvc

Parameters

The endmqsvc command has no parameters.

You must set the path to the installation that contains the service. Either make the installation primary, run the setmqenv command, or run the command from the directory containing the endmqsvc binary file.

Return codes

Table 1. Return code identifiers and descriptions
Return code Description
0 Successful command completion
36 Invalid arguments provided
119 User not authorized to stop the service
657 Service could not be stopped