【发布时间】: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