You can run only the same Portable Scanner that was written to the removable drive specified in the settings before creating the Portable Scanner. If you copy the Portable Scanner to a different USB drive, you will not be able to run it.
To run a Portable Scanner:
cd command, navigate to the folder where the kavscan.exe file is located.For example, you can type the following command cd "[drive]:\Kavscan" and press Enter.
run kavscan.exe scan
run kavscan.exe scan [/av] [/traffic=<duration in seconds>] [/oval=<full path to ZIP archive with security audit rules>] [/mycomputer] [/fixed] [/removable] [/remote] [/shared] [/memory] [/startup] [/drive=<disk>] [/folder=<full path to folder to scan>] [/file=<full path to file including name>] [/cure={yes|no}] [/trace] [/dump] [/report=<type>] [/settings=<full path to file with custom settings>]
To view the help documentation on the Portable Scanner run command, run kavscan.exe help
All kavscan.exe scan switches, except for /cure, /trace, /dump, and /report, override any original Portable Scanner settings. For example, if the kavscan.exe scan switches /av, /traffic, and /oval are specified in any combination or on their own, the Portable Scanner performs only those actions defined by the specified keys, even if the original Portable Scanner settings include all actions.
Command parameters for starting a Portable Scanner
Setting |
Description |
|
Starts scanning for viruses and other threats. |
|
Logs inbound and outbound traffic from a device being scanned during the specified time. Accepts values from 1 to 1800. If no logging duration is set in the command, the Portable Scanner uses its default duration. If no value is specified in the Portable Scanner settings, the default value of 300 seconds is used. |
|
Initiates a security audit task according to the rules inside the specified ZIP archive. The ZIP archive must contain an XML file with rules written in OVAL or a set of XML files with rules written in XCCDF. You need to provide the complete path to the ZIP file, including its name. If the full path to the ZIP archive containing the rules is not specified, the Portable Scanner runs the security audit according to its original settings. |
|
Starts scanning the entire computer. |
|
Starts scanning all fixed drives. |
|
Starts scanning all removable drives. |
|
Starts scanning all remote drives. |
|
Starts scanning the shared folders. |
|
Starts scanning all memory processes. |
|
Starts scanning the startup objects. |
|
Starts scanning all boot sectors and files on the specified drive. |
|
Starts scanning the specified folder. You cannot use a folder label template as a value for the parameter. |
|
Starts scanning the specified file. You need to specify the complete path to the file, including its name. |
|
Defines the scanning mode. The following values are available:
|
|
Enables tracing. |
|
Enables dump recording. |
|
Defines the type of report created in Kavscan\Report\report.txt after the scan completes. The following values are available:
By default, the short type is applied. |
|
Applies custom settings from the file located at the full path that includes the file name. If no value is specified, the Portable Scanner applies its original settings. These settings are located in Kavscan\settings.dat. |
Return codes of the kavscan.exe scan command:
0
—command successfully executed.1
—general error.