Managing scan scopes from command line

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

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

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

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

If a [ScanScope.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 scanned.

To delete a scan scope, execute the following command:

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

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

Page top