Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MpCmdRun.exe not running scan

Posted on 2014-10-16
3
Medium Priority
?
1,005 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 39

Accepted Solution

by:
BillDL earned 2000 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

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Question has a verified solution.

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

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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 basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

876 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