查看: 3387|回复: 2
收起左侧

[技术探讨] MSE的命令行好像不能扫描指定目录并生成本地日志

[复制链接]
iceelee
发表于 2013-3-14 11:54:56 | 显示全部楼层 |阅读模式
刚刚下载的最新版。
命令行扫描程序是MpCmdRun.exe
参数列表中,好像没有哪个可以指定保存本地扫描日志的。


请熟悉MSE命令行使用的朋友指导一下,如何使用MSE命令行扫描指定目录,并生成本地日志。
ELOHIM
发表于 2013-3-14 14:53:31 | 显示全部楼层
下面是MSE4.2  "mpcmdrun.exe" 命令行的用户可用参数,日志文件可以参照windows日志文件,也可以搜索系统隐藏目录下的mpcmdrun.log ,这个文件有多个位置存在。
  1. Microsoft Antimalware Service Command Line Utility (c)2006-2012 Microsoft Corp

  2. Use this tool to automate and troubleshoot Microsoft Antimalware Service



  3. Usage:

  4. MpCmdRun.exe [command] [-options]



  5. Command Description

  6.    -? / -h                                    Displays all available options

  7.                                               for this tool

  8.    -Scan [-ScanType #] [-File <path> [-DisableRemediation]]  Scans for malicious

  9.                                                             software

  10.    -Trace [-Grouping #] [-Level #]            Starts diagnostic tracing

  11.    -GetFiles                                  Collects support information

  12.    -RemoveDefinitions [-All]                  Restores the installed

  13.                                               signature definitions

  14.                                               to a previous backup copy or to

  15.                                               the original default set of

  16.                                               signatures

  17.                       [-DynamicSignatures]    Removes only the dynamically

  18.                                               downloaded signatures

  19.    -SignatureUpdate [-UNC | -MMPC]            Checks for new definition updates

  20.    -Restore  [-ListAll | [-Name <name>] [-All] [-Path <path>]]  Restore or list

  21.                                                                quarantined item(s)

  22.    -AddDynamicSignature [-Path]               Loads a dynamic signature

  23.    -ListAllDynamicSignatures                  List the loaded dynamic signatures

  24.    -RemoveDynamicSignature [-SignatureSetID]  Removes a dynamic signature

  25.    -EnableIntegrityServices                   Enables integrity services



  26. Additional Information:



  27. Support information will be in the following directory:

  28. C:\ProgramData\Microsoft\Microsoft Antimalware\Support



  29.    -Scan [-ScanType value]

  30.         0  Default, according to your configuration

  31.         1  Quick scan

  32.         2  Full system scan

  33.         3  File and directory custom scan



  34.            [-File <path>]

  35.                 Indicates the file or directory  to be scanned, only valid for custom scan.



  36.            [-DisableRemediation]

  37.                 This option is valid only for custom scan.

  38.                 When specified:

  39.                   - File exclusions are ignored.

  40.                   - Archive files are scanned.

  41.                   - Actions are not applied after detection.

  42.                   - Event log entries are not written after detection.

  43.                   - Detections from the custom scan are not displayed in the user

  44.                     interface.



  45.       Return code is

  46.       0    if no malware is found or malware is successfully remediated and no additional user action is required

  47.       2    if malware is found and not remediated or additional user action is required to complete remediation or there is error in scanning.  Please check History for more information.



  48.    -Trace [-Grouping value] [-Level value]

  49.         Begins tracing Microsoft Antimalware Service's actions.

  50.         You can specify the components for which tracing is enabled and

  51.         how much information is recorded.

  52.         If no component is specified, all the components will be logged.

  53.         If no level is specified, the Error, Warning and Informational levels

  54.         will be logged. The data will be stored in the support directory

  55.         as a file having the current timestamp in its name and bearing

  56.         the extension BIN.



  57.         [-Grouping]

  58.         0x1    Service

  59.         0x2    Malware Protection Engine

  60.         0x4    User Interface

  61.         0x8    Real-Time Protection

  62.         0x10   Scheduled actions

  63.         0x20   NIS/GAPA



  64.         [-Level]

  65.         0x1    Errors

  66.         0x2    Warnings

  67.         0x4    Informational messages

  68.         0x8    Function calls

  69.         0x10   Verbose

  70.         0x20   Performance



  71.    -GetFiles [-Scan]

  72.         Gathers the following log files and packages them together in a

  73.         compressed file in the support directory



  74.         - Any trace files from Microsoft Antimalware Service

  75.         - The Windows Update history log

  76.         - All Microsoft Antimalware Service events from the System event log

  77.         - All relevant Microsoft Antimalware Service registry locations

  78.         - The log file of this tool

  79.         - The log file of the signature update helper tool



  80.         [-Scan]

  81.         Scans for unusual files.  The files and results of the scan

  82.         will be packaged in the compressed file.



  83.    -RemoveDefinitions

  84.         Restores the last set of signature definitions



  85.         [-All]

  86.         Removes any installed signature and engine files. Use this

  87.         option if you have difficulties trying to update signatures.



  88.         [-DynamicSignatures]

  89.         Removes all Dynamic Signatures.



  90.    -SignatureUpdate

  91.         Checks for new definition updates



  92.         [-UNC [-Path <path>]]

  93.         Performs update directly from UNC file share specified in <path>

  94.         If -Path is not specified, update will be performed directly from the

  95.              preconfigured UNC location



  96.         [-MMPC]

  97.         Performs update directly from Microsoft Malware Protection Center



  98.    -Restore

  99.         [-ListAll]

  100.         List all items that were quarantined



  101.         [-Name <name>]

  102.         Restores the most recently quarantined item based on threat name

  103.         One Threat can map to more than one file



  104.         [-All]

  105.         Restores all the quarantined items based on name



  106.         [-Path]

  107.         Specify the path where the quarantined items will be restored.

  108.         If not specified, the item will be restored to the original path.

  109.    -AddDynamicSignature -Path <path>

  110.         Adds a Dynamic Signature specified by <path>



  111.    -ListAllDynamicSignatures

  112.         Lists SignatureSet ID's of all Dynamic Signatures added to the client

  113.         via MAPS and MPCMDRUN -AddDynamicSignature



  114.    -RemoveDynamicSignature -SignatureSetID <SignatureSetID>

  115.         Removes a Dynamic Signature specified by <SignatureSetID>
复制代码

评分

参与人数 1经验 +10 收起 理由
飞霜流华 + 10 感谢解答: )

查看全部评分

iceelee
 楼主| 发表于 2013-3-14 17:16:49 | 显示全部楼层
ELOHIM 发表于 2013-3-14 14:53
下面是MSE4.2  "mpcmdrun.exe" 命令行的用户可用参数,日志文件可以参照windows日志文件,也可以搜索系统隐 ...

感谢回答,,看来MSE的这点做的还是不够啊,可订制性不够完善。
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-11-24 15:51 , Processed in 0.121792 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表