How to perform a Mcafee command-line scan in Microsoft Windows


Usually, all On-Demand Scans are done through the VirusScan Console. However, sometimes it might be necessary to run a scan with strictly required programs only. Scenarios which require this include, but are not limited to:

  • Scanning a computer before installing VirusScan to ensure it is clean.
  • When a workstation has been infected and you are unable to load the VirusScan Console.
  • When VirusScan Enterprise (VSE) does not install successfully.



  • It some cases it may be necessary to run the Command Line Scan in Safe Mode.
  • McAfee recommends deleting all temporary files from your computer before running any scan. This includes files in the temp folder, temporary Internet files, Internet usage history and cookies.

Use the latest VirusScan Command Line Scanner (CLS). The CLS has the most up-to-date cutting edge generic drivers.

  1. Download the CLS scanner using your grant number.

To download McAfee products, updates, and documentation, visit the Downloads page at

For instructions on downloading, see: KB56057.

NOTE: If you do not have a license for VirusScan Command Line Scanner, please contact McAfee Technical Support.

For contact details:

    • Non-US customers – select your country from the list of Worldwide Offices



Log in to the ServicePortal at

    • If you are a registered user, type your User Id and Password and click OK.
    • If you are not a registered user, click New User and complete the required fields. Your password and login instructions will be emailed to you.


  1. Create a folder on the root of your primary partition. In this example: c:scan
  2. On the infected computer, extract the contents of or later to c:scan
  3. Download the latest beta.dats from one of the location below:
  4. Extract the contents of to c:scan and overwrite the existing files.
  5. Perform a complete system scan (best practice).
  6. Click Start, Run, type cmd and press ENTER.
  7. From the directory created above, type scan.exe /adl /all /analyze /clean /program /unzip /winmem /rptall /report=c:scan.log and press ENTER.


Courtesy :- Mcafee Corporation