查看: 11664|回复: 23
收起左侧

[技术探讨] 【关于MSE实用的几个命令行参数,轻松掌控你手中的MSE】

  [复制链接]
帅就是帅
发表于 2010-11-2 13:44:40 | 显示全部楼层 |阅读模式
本帖最后由 帅就是帅 于 2011-1-10 19:39 编辑

Microsoft Security Essentials includes a command-line utility which can be used to update the virus/malware definitions, initiate a scan, undo a recent definition update and perform other tasks. To know how to use the command-line utility, open a Command Prompt window (CMD.EXE) and execute the following command:

"%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe" /?


Command
Description
-? / -h
Displays all available options for this tool.
-Trace [-Grouping #] [-Level #]
Starts diagnostic tracing
-RemoveDefinitions [-All]
Restores the installed signature definitions to a previous backup copy or to the original default set of signatures
-RestoreDefaults
Resets the registry values for Microsoft Antimalware Service settings to known good defaults
-SignatureUpdate [-UNC]
Checks for new definition updates
-Scan [-ScanType]
Scans for malicious software
-Restore -Name <name> [-All]
Restore the most recently or all quarantined item(s) based on name
-GetFiles
Collects support information
In addition to the above information, detailed information for each command-line parameter is shown when you run the above command.
To update the MSE virus/malware definitions, use this command:

"%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe" -SignatureUpdate

The command-line tool can be useful if you want to update MSE using Batch file, Script or using Task Scheduler.
帅就是帅
 楼主| 发表于 2010-11-2 13:45:04 | 显示全部楼层

算了,本来不打算翻译的

本帖最后由 帅就是帅 于 2010-11-2 14:46 编辑

在那一篇《随心所欲,WIN7下使用计划任务自由掌控更新时间的一招》 里就用到了其中的命令行。

个人提醒:MSE2.0文件夹名称及相关文件路径会改变,注意修改

==================================

MSE包含了命令行实用工具来达到更新病毒间谍软件定义库、硬盘扫描、软件升级等其他任务的目的。若要了解如何使用命令行实用工具,打开cmd窗口,执行下述命令:
"%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe" /?

命令行参数
描述
-? / -h
显示此工具的所有可用选项
-Trace [-Grouping #] [-Level #]
运行诊断跟踪
-RemoveDefinitions [-All]
将已安装的病毒和间谍软件定义库恢复至先前备份状态或初始默认设置状态
-RestoreDefaults
重设Microsoft Antimalware Service服务注册表键值至默认良好状态
-SignatureUpdate [-UNC]
检查病毒和间谍软件定义库的更新
-Scan [-ScanType]
扫描风险软件
-Restore -Name <name> [-All]
依据文件名恢复隔离区最近项或者全部项
-GetFiles
收集支持信息

除了以上信息,当你运行上述命令时会显示其命令行参数更详细的信息。
若要更新病毒和软件定义库,使用如下命令:
"%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe" -SignatureUpdate
你会发现在使用文件路径、脚本以及任务计划程序来升级MSE过程中,这些命令行实用工具卓有成效。


MSE人
发表于 2010-11-2 13:54:58 | 显示全部楼层
感谢楼主技术分享~
ueue
发表于 2010-11-2 14:16:36 | 显示全部楼层
是什么东东?
帅就是帅
 楼主| 发表于 2010-11-2 14:18:57 | 显示全部楼层
回复 4楼 ueue 的帖子

你先看2L那个文章就明白了,那个就是在任务计划中调用命令行参数来实现自己掌握更新病毒库的方法,这几个命令行参数使用得当的话会帮助你不用手动设置,直接在固定时间自动更新、运行扫描等等,很是省心
五月旋木
发表于 2010-11-2 14:43:17 | 显示全部楼层
不知道干嘛
帅就是帅
 楼主| 发表于 2010-11-2 14:44:50 | 显示全部楼层
威尔士王子
发表于 2010-11-2 16:30:49 | 显示全部楼层
这个必须支持
kevin9718
发表于 2010-11-2 16:39:13 | 显示全部楼层
8L的吉格斯。年轻时风一样..新威尔士左天使该是贝尔了...
qaqaz
发表于 2010-11-2 18:10:10 | 显示全部楼层
这个好东西啊,必要时候再用吧
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

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

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-5-6 17:08 , Processed in 0.135035 second(s), 17 queries .

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

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