The WMI Query Language (WQL) is designed to perform queries against the CIM repository to retrieve WMI @R_850_4045@ion. WQL is a subset of ANSI sql with minor semantic changes to support WMI. Therefore,it is very straightforward to write WQL queries.WQL queries can be divided into three types: data,event,and schema.
The below two commands are equivalent:
Get-WmiObject –namespace root\Microsoft\sqlServer\ComputerManagement10 –class ClientNetworkProtocol -filter "ProtocolName=’np’"
Get-WmiObject –namespace root\Microsoft\sqlServer\ComputerManagement10 -query "Select * From ClientNetworkProtocol Where ProtocolName=’np’"
WQL queries can be divided into three types: data,and schema:
Data queries are used to retrieve class instances and data associations.
Event queries are used to subscribe to WMI events.
Schema queries are used to retrieve class deFinitions and schema associations.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。