cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Initiate scan via commandline

Hi!

Is it possible to run scan certain file from command line?

Something similar to Windows Defender command:

"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "e:\Issues\myfile" -DisableRemediation

 

Thank you!

6 Replies
Highlighted

Re: Initiate scan via commandline

Hi @RuslanP 

Please let us know the McAfee product that is installed on your computer

Regards,

Siddhartha.R

Highlighted

Re: Initiate scan via commandline

McAfee® Total Protection

Version: 16.0

Release Name: 16.0 R20

Highlighted
Moderator
Moderator
Report Inappropriate Content
Message 4 of 7

Re: Initiate scan via commandline

Hello @RuslanP 

Thanks for providing the information.

Use the below command to get into the command line scanner location:

cd C:\ Program Files\McAfee\MfeAV\

 

Use any of the below command as required:

For full scan:

mfeODS.exe /FULL

 

For a custom location scan:

mfeODS.exe <location>

Ex:- mfeODS.exe D:\McAfee\

 

For more information on scanning options:

mfeODS.exe /HELP

 

Note:

Please ensure you command prompt is opened as Administrator.

 

Regards,
Karthik K

 

Highlighted

Re: Initiate scan via commandline

@Karthik_KThank you for answer!

I have tried the command you provided but faced with problem that scan couldn't be started:

Microsoft Windows [Version 10.0.17134.1006]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd "C:\Program Files\McAfee\MfeAV\"

C:\Program Files\McAfee\MfeAV>mfeODS.exe c:\Temp\AMSI_Test.exe
Started scanning...
Scanning is completed...
100% Complete Scanned: 1 Found: 0 Resolved: 0
Scanning cannot be started. Restart your system and try again.
If the problem persists, contact customer care.

C:\Program Files\McAfee\MfeAV>

I restarted my system and ran CMD as Administrator but got the same error.

Highlighted
Moderator
Moderator
Report Inappropriate Content
Message 6 of 7

Re: Initiate scan via commandline

Hello @RuslanP 

Please give me some time, Let me check and get back to you.

Regards,
Karthik K

 

 

Highlighted

Re: Initiate scan via commandline

Hi @Karthik_K !

It seems that I have found out the reason of the error.

I try to scan a certain file - not a folder.

Based on help from "mfeODS /?" there is no option for file scan.

So, I repeat my question - Is it possible to scan certain file, not a folder maybe with an another utility?

How Many Badges Can You Collect?
Ready for a little competition? Members like you are earning badges and unlocking perks for their helpful answers. Are you? Click here to find out.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community