WQL
Encyclopedia
Windows Management Instrumentation Query Language (WQL) is Microsoft
Microsoft
Microsoft Corporation is an American public multinational corporation headquartered in Redmond, Washington, USA that develops, manufactures, licenses, and supports a wide range of products and services predominantly related to computing through its various product divisions...

's implementation of the CIM Query Language (CQL), a query language for the Common Information Model
Common Information Model (computing)
The Common Information Model is an open standard that defines how managed elements in an IT environment are represented as a common set of objects and relationships between them...

 (CIM) standard from the Distributed Management Task Force
Distributed Management Task Force
Distributed Management Task Force is an industry organization that develops, maintains and promotes standards for systems management in enterprise IT environments. These standards allow for building systems management infrastructure components in a platform-independent and technology-neutral way...

 (DMTF). It is a subset of the standard ANSI
American National Standards Institute
The American National Standards Institute is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States. The organization also coordinates U.S. standards with international...

 SQL
SQL
SQL is a programming language designed for managing data in relational database management systems ....

 with minor semantic changes. A basic WQL query remains fairly understandable for people with basic SQL knowledge.

WQL is dedicated to WMI
Windows Management Instrumentation
Windows Management Instrumentation is a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components provide information and notification...

 and is designed to perform queries against the CIM
Common Information Model (computing)
The Common Information Model is an open standard that defines how managed elements in an IT environment are represented as a common set of objects and relationships between them...

 repository to retrieve information or get event notifications.

Example

As an example, the following WQL query selects all the drives
Mass storage
In computing, mass storage refers to the storage of large amounts of data in a persisting and machine-readable fashion. Devices and/or systems that have been described as mass storage include tape libraries, RAID systems, hard disk drives, magnetic tape drives, optical disc drives, magneto-optical...

 on a computer that have less than 2 MB of free space:


SELECT * FROM Win32_LogicalDisk WHERE FreeSpace < 2097152

See also

  • Windows Management Instrumentation
    Windows Management Instrumentation
    Windows Management Instrumentation 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)
  • Common Information Model
    Common Information Model (computing)
    The Common Information Model is an open standard that defines how managed elements in an IT environment are represented as a common set of objects and relationships between them...

     (CIM)
  • Web-Based Enterprise Management
    Web-Based Enterprise Management
    Web-Based Enterprise Management is a set of systems management technologies developed to unify the management of distributed computing environments. WBEM is based on Internet standards and Distributed Management Task Force open standards: Common Information Model infrastructure and schema,...

     (WBEM)
  • Windows PowerShell
    Windows PowerShell
    Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework...


External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK