Kaspersky Standard | Plus | Premium

How to configure the use of Kaspersky Security Network on the command line

You can enable or disable the use of Kaspersky Security Network in the command line by using the UseKSN option in the general application settings.

You can change the value of UseKSN with the help of command line switches or a configuration file that contains all general application settings.

By default, UseKSN=Yes. This means that the use of Kaspersky Security Network is enabled by default.

To disable the use of Kaspersky Security Network with the help of command line switches, run:

kfl-control --set-app-settings UseKSN=No

To enable the use of Kaspersky Security Network with the help of command line switches, run:

kfl-control --set-app-settings UseKSN=Yes --accept-ksn

where:

  • Yes means to enable the use of Kaspersky Security Network.
  • --accept-ksn: an option signifying that you agree to the terms in the Kaspersky Security Network Statement. You confirm that you have fully read, understand, and accept the terms and conditions of the Kaspersky Security Network Statement.

The file ksn_license.<language ID> containing the text of the Kaspersky Security Network Statement is located in the /opt/kaspersky/kfl/doc/ directory.

To enable or disable use of Kaspersky Security Network with a configuration file, execute the following command:

kfl-control --set-app-settings --file <configuration file path> [--json] [--accept-ksn]

where:

  • --file <configuration file path> is the full path to the configuration file with the general application settings where the required UseKSN value is configured.
  • --json: specify this option if you are importing settings from a configuration file in JSON format. If the --json option is not specified, the application attempts to import from an INI file. If the import fails, an error is displayed.
  • --accept-ksn: an option signifying that you agree to the terms in the Kaspersky Security Network Statement. You must specify the option if you are enabling the use of Kaspersky Security Network.