- MAXIMUMpcguides – Windows 7 tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-7 -
Scan For Viruses or Update Microsoft Security Essentials Using the MpCmdRun Command Line Utility
Posted By Brent Trahan On June 23, 2009 @ 10:33 am In Guides, Security | 2 Comments
Pretty much everything that can be done from the Microsoft Security Essentials (MSE) GUI interface and more can be done using MSE’s MpCmdRun command line utility.
If you have the skills, you can get pretty creative and manage a network of computers using batch files.
To start the MSE command line utility:
You can now use the MpCmdRun.exe command followed by switche(s) to scan, update, fix, or collect MSE data.
MpCmdRun.exe -Scan [-ScanType]
Example usage:
Full scan: MpCmdRun.exe -Scan -2
MpCmdRun.exe -SignatureUpdate
Example usage:
Update from Microsoft MpCmdRun.exe –SignatureUpdate
Update from network share MpCmdRun.exe –SignatureUpdate -\\file-server\MSE-update
MpCmdRun.exe -Trace [-Grouping value] [-Level value]
Trace Microsoft Antimalware’s actions. You can specify the components for which tracing is enabled and how much information is recorded. If no component is specified, all the components will be logged.
If no level is specified, the Error, Warning and Informational levels will be logged.
The data will be stored in the support directory (C:\Program Files\Microsoft Security Essentials\Support) as a file having the current timestamp in its name and bearing the extension BIN.
[-Grouping]
[-Level]
Example usage:
Monitor real-time protection and performance MpCmdRun.exe -Trace -Grouping 0x8 -Level 0x20
MpCmdRun.exe -GetFiles
Gathers the following log files and packages them together in a compressed file in the support directory.
Example usage:
Gather log files MpCmdRun.exe -GetFiles
MpCmdRun.exe -RemoveDefinitions
Rolls back to the previous set of definitions.
[-All] Removes any installed definitions and engine files. Use this option if you have difficulties trying to update definitions.
Example usage:
Roll back definitions MpCmdRun.exe -RemoveDefinitions
Remove all definitions MpCmdRun.exe -RemoveDefinitions -All
Article printed from MAXIMUMpcguides – Windows 7 tips, tricks, help, and how-to guides: http://maximumpcguides.com/windows-7
URL to article: http://maximumpcguides.com/windows-7/scan-for-viruses-or-update-microsoft-security-essentials-using-the-mpcmdrun-command-line-utility/
Click here to print.
Copyright © 2009 MAXIMUMpcguides Windows 7. All rights reserved.