WQL
   HOME

TheInfoList



OR:

Windows Management Instrumentation Query Language (WQL) is
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washing ...
'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. 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:WMI Queries
/ref> SELECT * FROM Win32_LogicalDisk WHERE FreeSpace < 2097152


See also

*
Windows Management Instrumentation Windows Management Instrumentation (WMI) consists of a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components provide information and notification. WMI is Microsoft's impl ...
(WMI) * Common Information Model (CIM) * Web-Based Enterprise Management (WBEM) *
Windows PowerShell PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-sourc ...


References


External links


Querying with WQL

WQL Operators

WQL-Supported Date Formats

WQL-Supported Time Formats

WQL (SQL for WMI)

Using WQL with the WMI Provider for Server Events

WMI Queries

Learn WMI Query Language using PowerShell
{{DMTF Standards Windows technology SQL