VirusScan Command Line Scanner 6.1.x for Windows switches
Technical Articles ID:
KB52229
Last Modified: 8/21/2020
Last Modified: 8/21/2020
Environment
McAfee VirusScan Command Line Scanner 6.1.x
Summary
You can obtain the following information from the Windows command prompt. Use either of the following commands from the directory where SCAN.EXE is stored:
-
scan.exe /? -
scan.exe /help
Syntax
Scan [object1] [object2...] [option1] [option2...]
Command-Line options in alphabetical order:
Option | Description |
Display this help screen. | |
Scan all drives (not removable media). | |
Scan all local drives (not removable media). | |
Scan all network drives. | |
Set the size(in MB) of the internal cache used when decompressing archive files. | |
Scan all files regardless of file name extension. | |
Treat all files as compound/OLE regardless of extension. | |
Turn on heuristic analysis for programs and macros. | |
Append to report file rather than overwriting. | |
Append to bad file rather than overwriting. | |
Display file names as ASCII text. | |
File name and path for bad list log file. | |
Scan boot sector and master boot record only. | |
Scan list of files contained in <filename>. | |
Clean viruses from infected files and system areas. | |
Display contents of <filename> when a virus is found. | |
Remove all macros from infected Microsoft Office files. | |
Delete infected files. | |
Scan migrated files (hierarchical storage management). | |
Directory specifying location of DAT files. | |
Do not scan files listed in <filename>. | |
Scan defaults and user extension list. | |
List file extensions scanned by default. | |
Scan using an |
|
Find all macros - not just infected macros. Use with |
|
Force digital signature check. | |
Do not scan <hours> after the previous scan. | |
Display this help screen. | |
Create an HTML report file. | |
Load options from <filename>. | |
Include all scanned files in the /REPORT file. | |
Scan inside plain text mailboxes. | |
Turn on macro heuristics. | |
Scan many floppy diskettes. | |
Examine only those files smaller than the specified size (in KB). | |
File size (in KB) to load into memory for scanning limited by a maximum file size defaulting to 1 MB. | |
Scan inside MIME, |
|
Move infected files into directory <dir>, |
|
Prevent scanning of files that are normally protected. | |
Do not scan boot sectors. | |
Disable |
|
Do not scan self-extracting executables by default. | |
Do not switch into |
|
No direct disk access. | |
Do not scan password-protected Microsoft Office documents. | |
Do not scan Microsoft Office files. | |
Disable data files expiration date notice. | |
Do not alert on joke files. | |
Do not scan memory for viruses. | |
Do not move files from remote storage into local storage after scanning. | |
Do not rename infected files that can't be cleaned. | |
Do not scan files that contain HTML, JavaScript, Visual Basic, or Script Component Type Libraries. | |
Turn on program heuristics. | |
Pause at end of each screen page. | |
Preserve Last Access Dates on Novell NetWare drives. | |
Scan for potentially unwanted applications. | |
Examine any subdirectories in addition to the specified target directory. | |
Report names of viruses found into <filename>. | |
/RPTALL | Include all scanned files in the |
Include corrupted files in |
|
Include errors in |
|
Reports number of objects at all levels scanned in summary. | |
Equivalent to Analyze, |
|
Report any files that are packaged. | |
Disable all screen output. | |
Scan inside NTFS streams (NT only). | |
Scan subdirectories. | |
Set scan thread count. | |
Set the maximum time to spend scanning any one file. | |
Scan inside archive files, such as those saved in ZIP, LHA, PKarc, ARJ, TAR, CHM, and RAR. | |
Display the scanner's version number. | |
Display virus list. | |
If pid given, scans the Windows Process with Process ID <pid>; otherwise scans all Windows Processes. | |
/XMLPATH=<filename> | File name and path for XML log file. |
For additional information, see your VirusScan Command Line Scanner Product Guide.
For McAfee product documents, go to the Enterprise Product Documentation portal at https://docs.mcafee.com.
Error Levels
When you run the on-demand scanner in the MS-DOS environment, an error level is set. You can use the ERRORLEVEL value in batch files to act based on the results of the scan. See your MS-DOS operating system documentation for more information.
The on-demand scanner can return the following error levels:
Error Level | Description |
0 | The scanner found no viruses or other potentially unwanted software, and returned no errors. |
2 | Integrity check on DAT file failed. |
6 | A general problem occurred. |
8 | The scanner was unable to find a DAT file. |
10 | A virus was found in memory. |
12 | The scanner tried to clean a file, the attempt failed, and the file is still infected. |
13 | The scanner found one or more viruses or hostile objects such as a trojan horse program, joke program, or test file. |
15 | The scanner's self-check failed; the scanner might be infected or damaged. |
19 | The scanner succeeded in cleaning all infected files. |
20 | Scanning was prevented because of the |
21 | Computer requires a reboot to clean the infection. |
102 | The user quit via This feature can be disabled with the |
Related Information
See also:
NOTE: Runningscan.exe from the command prompt against a target provides you with version information about the Scan Engine and the DAT file used.
McAfee VirusScan Command Line for Win32 Version: 6.0.3.356
Copyright (C) 2010 McAfee, Inc.
(408) 988-3832 LICENSED COPY - April 11 2012
AV Engine version: 5400.1158 for Win32.
DAT set version: 6676 created Apr 10 2012
Scanning for 619012 viruses, trojans, and variants.
- For more information about performing a command-line scan in Windows, see KB51141.
- For how to set exclusions in VirusScan
Command Line Scanner, see KB69551.
NOTE: Running
Example:
scan c:\
Result:
The root ofC: is scanned and the follow additional information is also shown:
Result:
The root of
Copyright (C) 2010 McAfee, Inc.
(408) 988-3832 LICENSED COPY - April 11 2012
AV Engine version: 5400.1158 for Win32.
DAT set version: 6676 created Apr 10 2012
Scanning for 619012 viruses, trojans, and variants.