关闭

WMI Query Language (WQL)

标签: querysqlservermicrosoftsemanticschematypes
1474人阅读 评论(0) 收藏 举报
分类:

The WMI Query Language (WQL) is designed to perform queries against the CIM repository to retrieve WMI information. 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, event, 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.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:633502次
    • 积分:8336
    • 等级:
    • 排名:第2347名
    • 原创:177篇
    • 转载:23篇
    • 译文:49篇
    • 评论:77条
    最新评论