How to manage tasks using the command line

The following application tasks are provided for managing the Kaspersky application on the command line:

Each application task has a name used on the command line, an ID, and a type (see the table below).

IDs are unique for all tasks, including deleted tasks. The application does not reuse the identifiers of the deleted tasks. The identifier of a new task is the next successive number to the identifier of the latest created task.

Task names are not case-sensitive.

During installation of the application, predefined tasks are created. These tasks cannot be deleted. Each predefined task has a name and ID.

Tasks that you create while working with the application are called user tasks. When you create the task, you specify the name for it. IDs for user tasks are defined and assigned by the application when the task is created. IDs for user tasks are starting from 100.

During operation, the application creates temporary scan tasks. Temporary task names and IDs are assigned by the application. Temporary tasks are automatically deleted when completed.

Application tasks

Task

Task name in command line

Task ID

Task type

File Threat Protection

File_Threat_Protection

1

OAS

Malware Scan

Scan_My_Computer

2

ODS

Malware Scan (user task)

user-defined

starting from 100

ODS

Custom file scan

Scan_File

3

ODS

Critical Areas Scan

Critical_Areas_Scan

4

ODS

Update

Update

6

Update

Update (user task)

user-defined

starting from 100

Update

Rollback

Rollback

7

Rollback

Rollback (user task)

user-defined

starting from 100

Rollback

Licensing

License

9

License

Web Threat Protection

Web_Threat_Protection

14

WTP

Removable Drives Scan

Removable_Drives_Scan

16

RDS

Behavior Detection

Behavior_Detection

20

BehaviorDetection

You can perform the following actions with tasks:

In this section

How to view the list of tasks on the command line

How to view the status of a task on the command line

How to create a task on the command line

How to start, stop, pause, and resume a task on the command line

How to delete a task on the command line

How to output task settings to the console or into a configuration file

Page top