Kaspersky Security 11.x for Windows Server

Managing tasks asynchronously: KAVSHELL TASK

June 10, 2022

ID 146709

You can use the KAVSHELL TASK command to manage the specified task: run, pause, resume and stop the task and view the current task status and statistics. The command is performed in asynchronous mode.

A password might be required to execute the command. To enter the current password, use [/pwd:<password>].

KAVSHELL TASK command syntax

KAVSHELL TASK [<task name alias> </START | /STOP | /PAUSE | /RESUME | /STATE | /STATISTICS >]

KAVSHELL TASK command examples

KAVSHELL TASK

KAVSHELL TASK on-access /START

KAVSHELL TASK user-task_1 /STOP

KAVSHELL TASK scan-computer /STATE

KAVSHELL TASK network-attack-blocker /START

The KAVSHELL TASK command can run without parameters/options or with one or more parameters/options (see the table below).

KAVSHELL TASK command-line parameters/options

Parameter/option

Description

No parameters

Return the list of all existing Kaspersky Security for Windows Server tasks. The list includes the following fields: task alias, task category (system or custom) and current task status.

<task alias>

Instead of the task name, in the SCAN TASK command, use its task alias, an additional abbreviated name that Kaspersky Security for Windows Server assigns to tasks. To view Kaspersky Security for Windows Server task aliases, enter the KAVSHELL TASK command without any parameters.

/START

Start the specified task in asynchronous mode.

/STOP

Stop the specified task.

/PAUSE

Pause the specified task.

/RESUME

Resume the specified task in asynchronous mode.

/STATE

Return the current task status (for example, Running, Completed, Paused, Stopped, Failed, Starting, Resuming).

/STATISTICS

Retrieve task statistics - Information about the number of objects processed from the time the task started

Note that not all Kaspersky Security for Windows Server tasks fully support /PAUSE, /RESUME and /STATE keys.

Return codes for the KAVSHELL TASK command.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.