Editing task settings using command line

To edit a task settings using command line:

  1. Specify the required setting value:

    kesl-control --set-settings <task name or ID> <setting=value> [<setting=value>]

    Kaspersky Endpoint Security changes the specified setting.

  2. Make sure the setting value is changed in a task configuration file:

    kesl-control --get-settings <task name or ID>

If you add a new scan scope or exclusion scope not specifying all settings, a scope with default settings is added to a configuration file.

Example:

To specify a new scan scope, execute the following command:

kesl-control --set-settings 100 ScanScope.item_0001.UseScanArea=Yes ScanScope.item_0001.Path=/home

A new section describing a scan scope is added to the configuration file for the task with ID=100:

[ScanScope.item_0001]

AreaDesc=

UseScanArea=Yes

Path=/home

AreaMask.item_0000=*

Page top