License key management in the command line

To manage license keys on a device, you can use license key management commands.

The commands for managing license keys can be executed only if the application is used in standard mode. If Kaspersky Endpoint Security is used in Light Agent mode to protect virtual environments, commands for managing license keys finish with an error. You activate the application as part of Kaspersky Security for Virtualization Light Agent, and therefore do not need to activate the application separately.

To add an active license key to the application, run the following command:

kesl-control [-L] --add-active-key <path to key file / activation code>

where:

To add a reserve license key to the application, run the following command:

kesl-control [-L] --add-reserve-key <path to key file / activation code>

If an active key has not yet been added to the application on the device, the command fails.

You can use the Add key command commands to add application license keys as well as EDR Optimum license keys. You do not need to specify the type of the key in the command.

To remove an active application key, run the following command:

kesl-control [-L] --remove-active-key

To remove a reserve application key, run the following command:

kesl-control [-L] --remove-reserve-key

To remove an active EDR Optimum key, run the following command:

kesl-control [-L] --remove-active-key --edr-optimum

To remove a reserve EDR Optimum key, run the following command:

kesl-control [-L] --remove-reserve-key --edr-optimum

Page top