Solved

MpCmdRun.exe not running scan

Posted on 2014-10-16
3
854 Views
Last Modified: 2014-10-28
When entering the following into a CMD command prompt
C:\Program Files\Windows Defender>MpCmdRun.exe -Scan -scantype 1
It returns the following;

Signature update started . . .
Signature update finished. No updates needed

However, there is nothing about it running a scan. When checking the log file in
C:\ProgramData\Microsoft\Microsoft Forefront\Client Security\Client\Antimalware\Support there are no entries for the scan.
Does anyone know how I can get it to scan from the command line? Is there another setting / switch that I have to implement ?

Thanks in advance
0
Comment
Question by:MattyS82
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
BillDL earned 500 total points
ID: 40386727
The command line syntax and option is fine, according to the help file   (MpCmdRun.exe -h or /?), and I am positive that the only option that you have to specify the target drive or directory to scan is when you choose the Custom Scan type 3.

MpCmdRun.exe -Scan -scantype 1

From a batch file, try forcing an update signature check first and then see if the scan command works.  I can't verify the path to your executable because I have Microsoft Security Essentials on Windows XP.  It uses the same MpCmdRun.exe program for command line scanning and updating though.
@echo off
"C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate -MMPC
"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -scantype 1
pause

Open in new window


The commands should run concurrently, waiting for the update command to finish before starting the scan one.
0
 
LVL 1

Author Comment

by:MattyS82
ID: 40393328
BillDL,

Thanks for the comment. I will try that and get back to you. Sorry, for the late reply.

Matt
0
 
LVL 1

Author Closing Comment

by:MattyS82
ID: 40409644
Thanks for your input. Sorry, for the late reply was away from my desk for a few days
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now