【问题标题】:SecurityCenter WMI in Windows 8Windows 8 中的安全中心 WMI
【发布时间】:2015-01-23 14:31:12
【问题描述】:

回到 Windows 7 和更早版本 - 我使用 PowerShell 脚本访问 root\SecurityCenter 或 root\SecurityCenter2,以便通过 Get-WMIObject cmdlet 监控 AV/Anti-Spyware 等。

现在从 Windows 8 开始,这个 WMI 命名空间不再存在。我在网上做了一些研究,我似乎找不到任何替代方法来轻松访问 AV 产品的 Action Center 状态、最新状态等。

是否有人知道在 Windows 8 中通过 PowerShell 获取此信息,结果与旧 WMI 方法相似?

【问题讨论】:

  • 我刚刚检查过,SecurityCenter2 存在于 Windows 8 中,这对我有用 Get-WmiObject -namespace root\SecurityCenter2 -class AntiVirusProduct

标签: powershell wmi


【解决方案1】:

我很确定 WMI 命名空间 root\SecurityCenter2 在 Windows 8.1 中仍然可用,考虑到它在 Windows 10 Tech Preview 中可用。

PS > Get-WmiObject -Namespace root\securitycenter2 -Class antivirusproduct

__GENUS                  : 2
__CLASS                  : AntiVirusProduct
__SUPERCLASS             : 
__DYNASTY                : AntiVirusProduct
__RELPATH                : AntiVirusProduct.instanceGuid="{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"
__PROPERTY_COUNT         : 6
__DERIVATION             : {}
__SERVER                 : MY-PC
__NAMESPACE              : ROOT\securitycenter2
__PATH                   : \\MY-PC\ROOT\securitycenter2:AntiVirusProduct.instanceGuid="{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"
displayName              : Windows Defender
instanceGuid             : {D68DDC3A-831F-4fae-9E44-DA132C1ACF46}
pathToSignedProductExe   : %ProgramFiles%\Windows Defender\MSASCui.exe
pathToSignedReportingExe : %ProgramFiles%\Windows Defender\MsMpeng.exe
productState             : 397568
timestamp                : Sat, 24 Jan 2015 20:53:02 GMT
PSComputerName           : MY-PC

【讨论】:

    猜你喜欢
    • 2012-10-05
    • 2011-06-09
    • 2012-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多