Working with the application from the command line

You can work with Kaspersky Anti-Virus using the command line. The capability is provided to perform the following operations:

  • activate the application;
  • start and stop the application;
  • start and stop application components;
  • start and stop the tasks;
  • obtain information on the current status of components and tasks as well as their statistics;
  • start and stop virus scan tasks;
  • scan selected objects;
  • update databases and software modules, roll back updates;
  • export and import security settings;
  • open help files using the command line syntax in general and for individual commands.

Command prompt syntax:

avp.com <command> [options]

You should access the application from the command line from the application installation folder, or by specifying the full path to avp.com.

The list of commands used to control the application and its components is provided in the table below.

START

Starts a component or a task.

STOP

Stops a component or a task. The command can only be executed if the password assigned via the Kaspersky Anti-Virus interface is entered.

STATUS

Displays the current component or task status on screen.

STATISTICS

Displays statistics for the component or task on screen.

HELP

Displays the list of commands and command syntax information.

SCAN

Object scan for viruses.

UPDATE

Starts the application update.

ROLLBACK

Rolls back to the last Kaspersky Anti-Virus update made. The command can only be executed if the password assigned via the application interface is entered.

EXIT

Closes the application. The command can only be executed if the password assigned via the application interface is entered.

IMPORT

Import application protection settings. The command can only be executed if the password assigned via the Kaspersky Anti-Virus interface is entered.

EXPORT

Exports application protection settings.

Each command requires its own specific set of settings.

In this section:

Activating the application

Starting the application

Stopping the application

Managing application components and tasks

Virus scan

Updating the application

Rolling back the last update

Exporting protection settings

Importing protection settings

Creating a trace file

Viewing Help

Return codes of the command line

Working with the application from the command line