Editing general application settings

Root privileges are required to change application settings.

To edit the general application settings:

  1. Save the general application settings to the configuration file using the --get-app-settings command:

    kesl-control [-T] --get-app-settings --file <configuration file path>

  2. Open the created configuration file, edit the necessary settings, and save the changes.
  3. Import the settings from the configuration file into the application using the --set-app-settings command:

    kesl-control [-T] --set-app-settings --file <configuration file path>

    To enable the Kaspersky Security Network usage, run the kesl-control --set-settings command with the --accept-ksn flag: kesl-control --set-app-settings UseKSN=Basic|Extended --accept-ksn.

Kaspersky Endpoint Security applies the new values of the settings after restart.

You can use the created configuration file to import the settings into the application installed on another device.

The kesl-control --get-app-settings command

The kesl-control --get-app-settings command displays the general application settings. You can also use this command to export the general application settings to a configuration file.

Command syntax

kesl-control [-T] --get-app-settings [--file <configuration file path>] [--json]

Arguments and keys

--file <configuration file path> – path to the configuration file where the application settings will be saved. If you specify the name of a file without specifying its path, the file will be created in the current directory. If a file with the specified name already exists in the specified path, it will be overwritten. If the specified directory cannot be found on the disk, the configuration file will not be created. If you do not specify the --file option, the general application settings will be displayed on the console.

--json – format of the configuration file where the application settings will be saved. If a file format is not specified, the settings will be exported to an INI file.

Example:

Export the general application settings to a file named kesl_config.ini. Save the created file in the current directory:

kesl-control --get-app-settings --file kesl_config.ini

The kesl-control --set-app-settings command

The kesl-control --set-app-settings command sets the general application settings using the command options or imports the general application settings from the specified configuration file.

Command syntax

kesl-control [-T] --set-app-settings <setting name>=<setting value> <setting name>=<setting value>

kesl-control [-T] --set-app-settings --file <configuration file path> [--json]

Arguments and keys

--file <configuration file path> – full path to the configuration file to import the settings into the application.

--json – format of the configuration file to import the settings into the application. If a file format is not specified, the application attempts to import settings from an INI file. If the import fails, an error is displayed.

Examples:

Import general settings into the application from the configuration file /home/test/kesl_config.ini:

kesl-control --set-app-settings --file /home/test/kesl_config.ini

Set the detail level for the trace file to low:

kesl-control --set-app-settings TraceLevel=NotDetailed

Add a mount point to be excluded from scan scope by tasks that use a file operation interceptor (File Threat Protection and Anti-Cryptor):

kesl-control --set-app-settings ExcludedMountPoint.item_0000="/data"

Page top