You can create and run the queries that are accessible in the System Center 2012 Configuration Manager console under Queries. The queries can be used to locate objects in a System Center 2012 Configuration Manager site that match your query criteria. These objects include items such as specific types of computers or user groups. Queries can return most types of Configuration Manager objects, including sites, collections, packages, and saved queries themselves. However, queries are most useful for extracting information that is related to resource discovery, inventory data, and status messages.
|For information about using Queries in System Center 2012 Configuration Manager, see http://go.microsoft.com/fwlink/?LinkId=133894.|
Configuration Manager queries are defined by SMS_Query object instances. The query is a WQL query and is defined in the Expression property. For more information about WQL, see Configuration Manager Extended WMI Query Language.
Each query has a unique identifier assigned to it by the SMS Provider and can be used to get a specific query.
For information about running a query, see How to Run a Configuration Manager Query.
You can also create queries by creating instances of SMS_Query. When you create a query, it is displayed in the Configuration Manager console under Queries. If you want to, you can limit the results returned to those resources that belong to a specific collection. For more information about creating queries, see How to Create a Configuration Manager Query.