首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 8中的SecurityCenter WMI

Windows 8中的SecurityCenter WMI
EN

Stack Overflow用户
提问于 2015-01-23 14:31:12
回答 1查看 2.1K关注 0票数 1

回到Windows7及更高版本,我使用PowerShell脚本访问root\SecurityCenter或root\SecurityCenter2,以便通过Get-WMIObject cmdlet监视AV/反间谍软件等。

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

有没有人知道在Windows 8中通过PowerShell获取这一信息,其结果与旧的WMI方法相似?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-25 19:29:17

我确信WMI命名空间root\SecurityCenter2在Windows8.1中仍然可用,考虑到它在Windows10TechnologyPreview中是可用的。

代码语言:javascript
复制
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28112084

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档