Managing Kaspersky Endpoint Agent activation
May 29, 2023
ID 197543
This section provides information related to Kaspersky Endpoint Agent for Windows. This information may be partially or completely inapplicable to Kaspersky Endpoint Agent for Linux. For complete information about Kaspersky Endpoint Agent for Linux, please refer to the Help of the solution that includes the application: Kaspersky Anti Targeted Attack Platform or Kaspersky Managed Detection and Response.
To manage application activation through 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. - Enter one of the following commands and press ENTER:
- To activate the application using the activation code or key file:
agent.exe --license=add <activation code or path to the key file>
To activate the application using the activation code, the protected device must be connected to the Internet.
- To specify an additional key to automatically renew the license:
agent.exe --license=reserve <activation code or path to the key file>
- To remove an added primary or additional key:
agent.exe --license=delete <key serial number>
- To view the status of added keys:
agent.exe --license=show
- To activate the application using the activation code or key file:
Return codes of the --license
command:
-305
– the added key has expired.2
– undefined application error.-302
– the added key is in the deny list.-301
– the added key is not suitable to activate Kaspersky Endpoint Agent.-303
– key file is damaged.4
– syntax errors.-304
– invalid path to the key file has been specified.