Solved

MpCmdRun.exe not running scan

Posted on 2014-10-16
3
829 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

These are on the increase and getting more common these days. Users who use the Google search engine may complain of having their search redirected to unwanted sites, regardless of what browser is used. This happens when the system is infected with…
OfficeMate Freezes on login or does not load after login credentials are input.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

759 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

18 Experts available now in Live!

Get 1:1 Help Now