Jump to content

WQL

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by WOSlinker (talk | contribs) at 15:55, 31 January 2021 (change source to syntaxhighlight). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WQL
FamilyQuery language
DeveloperMicrosoft
OSMicrosoft Windows
Influenced by
SQL

Windows Management Instrumentation Query Language (WQL) is Microsoft's implementation of the CIM Query Language (CQL), a query language for the Common Information Model (CIM) standard from the Distributed Management Task Force (DMTF). It is a subset of ANSI standard SQL with minor semantic changes.[1]

WQL is dedicated to WMI and is designed to perform queries against the CIM repository to retrieve information or get event notifications.

Example

As an example, the following WQL query selects all the drives on a computer that have less than 2 MB of free space:[2]

SELECT * FROM Win32_LogicalDisk WHERE FreeSpace < 2097152

See also

References

External links