Windows 8 中的 SecurityCenter WMI

SecurityCenter WMI in Windows 8

回到 Windows 7 及更早版本 - 我使用 PowerShell 脚本访问 root\SecurityCenter 或 root\SecurityCenter2 以通过 [= 监控 AV/Anti-Spyware 等11=] 命令。

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

有谁知道在 Windows 8 中通过 PowerShell 访问此信息并获得与旧 WMI 方法类似的结果?

我很确定 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