升级Microsoft Security Essentials的命令行


Answers:


1

您需要为要升级到的新版本下载相应的安装程序,然后运行该文件。这些文件可从microsoft下载中心获得。保存文件,然后运行setupfilename.exe /s /runwgacheck /o以静默运行安装程序而不显示任何对话框。然后应该自动安装升级。请注意,安装程序不正式支持命令行参数,因此在将来的版本中,命令行选项可能会更改或消失。


0

既然MSE现在处于WSUS和Windows Update中,您可能想要做类似的事情 wuauclt /detectnow

有些脚本会为WUAU运行完整的检测和安装,这可能有所帮助,但我认为你只需要下载最新的MSI或EXE并使用msiexec静默安装它。


0

我不确定你能通过MSE做到这一点。它的命令行选项如下:

C:> cd%ProgramFiles%\ Microsoft Security Essentials

C:\ Program Files \ Microsoft Security Essentials> MpCmdRun

Microsoft Antimalware Service Command Line Utility (c)2006-2008 Microsoft Corp
Use this tool to automate and troubleshoot Microsoft Antimalware Service

Usage:
MpCmdRun.exe [command] [-options]

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

Additional Information:

Support information will be in the following directory:
C:\ProgramData\Microsoft\Microsoft Antimalware\Support

   -Scan [-ScanType]
        0  Default, according to your configuration
        1  Quick scan
        2  Full system scan

   -Trace [-Grouping value] [-Level value]
        Begins tracing Microsoft Antimalware Service'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
        as a file having the current timestamp in its name and bearing
        the extension BIN.

        [-Grouping]
        0x1    Service
        0x2    Malware Protection Engine
        0x4    User Interface
        0x8    Real-Time Protection
        0x10   Scheduled actions

        [-Level]
        0x1    Errors
        0x2    Warnings
        0x4    Informational messages
        0x8    Function calls
        0x10   Verbose
        0x20   Performance

   -GetFiles
        Gathers the following log files and packages them together in a
        compressed file in the support directory

        - Any trace files from Microsoft Antimalware Service
        - The Windows Update history log
        - All Microsoft Antimalware Service events from the System event log
        - All relevant Microsoft Antimalware Service registry locations
        - The log file of this tool
        - The log file of the signature update helper tool

   -RemoveDefinitions
        Restores the last set of signature definitions

        [-All]
        Removes any installed signature and engine files. Use this
        option if you have difficulties trying to update signatures.

        [-DynamicSignatures]
        Removes all Dynamic Signatures.

   -RestoreDefaults
        Resets all configuration options to their default values; this is the
        equivalent of running Microsoft Antimalware Service setup
        unattended.

   -SignatureUpdate
        Checks for new definition updates

        [-UNC]
        Performs update directly from UNC file shares

   -Restore -Name <name>
        Restores the most recently quarantined item based on name

        [-All]
        Restores all the quarantined items based on name

   -AddDynamicSignature -Path <path>
        Adds a Dynamic Signature specified by <path>

   -RemoveDynamicSignature -SignatureSetID <SignatureSetID>
        Removes a Dynamic Signature specified by <SignatureSetID>

   -ListAllDynamicSignatures
        Lists SignatureSet ID's of all Dynamic Signatures added to the client
        via SpyNet and MPCMDRUN -AddDynamicSignature
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.