Solved

MpCmdRun.exe not running scan

Posted on 2014-10-16
3
903 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

OfficeMate Freezes on login or does not load after login credentials are input.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

732 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