WQL
   HOME

TheInfoList



OR:

Windows Management Instrumentation Query Language (WQL) is
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
's implementation of the CIM Query Language (CQL), a query language for the Common Information Model (CIM) standard from the
Distributed Management Task Force Distributed Management Task Force (DMTF) is a 501(c)(6) nonprofit industry standards organization that creates open manageability standards spanning diverse emerging and traditional IT infrastructures including cloud, virtualization, network, s ...
(DMTF). It is a subset of
ANSI The American National Standards Institute (ANSI ) is a private nonprofit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States. The organiz ...
standard
SQL Structured Query Language (SQL) (pronounced ''S-Q-L''; or alternatively as "sequel") is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling s ...
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) is 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 implementatio ...
(WMI) * Common Information Model (CIM) *
Web-Based Enterprise Management In computing, Web-Based Enterprise Management (WBEM) comprises a set of systems-management technologies developed to unify the management of distributed computing environments. The WBEM initiative, initially sponsored in 1996 by BMC Software, Ci ...
(WBEM) *
Windows PowerShell PowerShell is a shell program developed by Microsoft for task automation and configuration management. As is typical for a shell, it provides a command-line interpreter for interactive use and a script interpreter for automation via a langua ...


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