WMI, Query Windows SecurityCenter2

来源:互联网 发布:留学咨询 知乎 编辑:程序博客网 时间:2024/06/05 10:09

In Windows Vista, the WMI query to get anti-virus information has been changed. Pre-Vista clients used the root/SecurityCenter namespace, while Post-Vista clients use the root/SecurityCenter2 namespace. But not only the namespace has been changed, an example using the query “select * from AntiVirusProduct”:

Pre-Vista Clients (namespace root/SecurityCenter):

companyName               A CompanydisplayName               Company Product XproductUpToDate           true/falseonAccessScanningEnabled   true/falseversionNumber             1.2.3

Post-Vista Clients (namespace root/SecurityCenter2):

displayName      Company Product XproductState     266240

The productState is not very well documented (or not at all) in the MSDN. I found some information at this msdn blog.


http://neophob.com/2010/03/wmi-query-windows-securitycenter2/



0 0
原创粉丝点击