I want the return code in command line itself when an virus is found. I hope that it was available in previous versions. If anyone knows how to achieve it please let me know.
@srini1995 wrote:I want the return code in command line itself when an virus is found. I hope that it was available in previous versions. If anyone knows how to achieve it please let me know.
If you are using Scan32.exe or Scan64.exe from VSE v8.8, there are no documented ErrorLevel return codes. VSE does not support the use of command line scanning, though it is sometimes done.
A better solution is: VirusScan Command Line Scanner.
Scan.exe is an offline command line scanner.
Documented ErrorLevel return codes:
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 may be infected or
19 The scanner succeeded in cleaning all infected files.
20 Scanning was prevented because of the /FREQUENCY option.
21 Computer requires a reboot to clean the infection.
I have a discussion here:
Hope this Helps.
Download the new ePolicy Orchestrator (ePO) Support Center Extension which simplifies ePO management and provides support resources directly in the console. Learn more about ePO Support Center