To manage application activation settings through the command line interface:
cd command, navigate to the folder where the Agent.exe file is located.For example, you can type the following command cd "C:\Program Files (x86)\Kaspersky Lab\Endpoint Agent\" and press ENTER.
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.
agent.exe --license=reserve <activation code or path to the key file>
agent.exe --license=delete <key serial number>
agent.exe --license=show
Return codes of the --license command:
E_EXPIRED – the added key has expired.E_FAIL – undefined application error.E_KEY_IN_BLST – the added key is in the black list.E_KEY_NOT_MATCH – the added key is not suitable for Kaspersky Endpoint Agent activation.E_GENERAL_ERROR – general error (for example, key file is damaged).E_INVALID_SYNTAX – syntax errors.E_INVALID_PATH – invalid path to the key file is specified.