Managing exclusion scopes from command line

You can add or delete an exclusion scope with specified Path for OAS, ODS, OAFIM, ODFIM, and Anti-Cryptor tasks from command line.

To add a new exclusion scope, execute the following command:

kesl-control --set-settings <task ID or name> --add-exclusion <path>

A new [ExcludedFromScanScope.item_#] section is added to a task configuration file. Kaspersky Endpoint Security excludes objects located in the directory specified by the Path parameter.

If a [ExcludedFromScanScope.item_#] section for the specified Path already exists, a duplicate section is not added to the configuration file. If the UseScanArea settings was set to No, after executing this command, the value becomes Yes, and objects located in this directory are excluded from scan.

To delete an exclusion scope, execute the following command:

kesl-control --set-settings <task ID or name> --del-exclusion <path>

A [ExcludedFromScanScope.item_#] section that contains the specified path is deleted from a task configuration file. Kaspersky Endpoint Security does not exclude objects located in the directory specified by the Path parameter.

Page top