Solved

MpCmdRun.exe not running scan

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I stop a PC from shutting down 6 43
registry key to start a program minimized to sytem tray 1 21
How to change the path of My Documents 2 22
Missing page content. 7 31
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
OfficeMate Freezes on login or does not load after login credentials are input.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

825 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