Starting, stopping and viewing the current application status
November 17, 2023
ID 193454
To start, stop, or view the current Kaspersky Endpoint Agent status using the command line interface:
- On the device, run a command line interpreter (for example, Command Prompt cmd.exe) with the permissions of the local administrator.
- Using the
cd
command, navigate to the folder where the Agent.exe file is located.For example, enter the command
cd "C:\Program Files (x86)\Kaspersky Lab\Endpoint Agent\"
and press ENTER. - Run the following command and press ENTER:
agent.exe --product=<start|stop|state> [--pwd=<current user password>]
Command parameters when starting, stopping, and viewing the current state of Kaspersky Endpoint Agent
Parameter
Description
--product=<start|stop|state>
Allows you to start, stop, or view the current application status.
--product=<start>
– starts the application.--product=<stop>
– stops the application.If password protection is configured for the application, a password is required to execute the
--product=<stop>
command.--product=<state>
– displays the current state of the application: started or stopped.
--pwd=<current user password>
Allows you to specify the password of the user whose account is used to execute the command.
Return codes of the --product=<start|stop|state>
command:
- -1 – command is not supported.
- 0 – command successfully executed.
- 1 – required argument is not passed to the command.
- 2 – general error.
- 4 – syntax error.
- 8 – permission error.
- 9 – invalid operation (for example, an attempt to execute the
--product=start
command if the application is already running).