Introduction to Queries in Configuration Manager
Updated: December 1, 2011
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
You can create and run queries to locate objects in a System Center 2012 Configuration Manager hierarchy 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, which include sites, collections, applications, and inventory data.
When you create a query, you must specify a minimum of two parameters: where you want to search and what you want to search for. For example, to find the amount of hard disk space that is available on all computers in a Configuration Manager site, you can create a query to search the Logical Disk attribute class and the Free Space (MB) attribute for available hard disk space.
After you create an initial query, you can specify additional query criteria. For example, you can specify that the query results include only computers that are assigned to a specified site. You can also modify how results are displayed so that you can view the results in an order that is meaningful to you. For example, you can specify that the results are sorted by the amount of free hard disk space in either ascending or descending order.
When you create a query, it is stored by Configuration Manager and displayed in the Queries node in the Monitoring workspace. From this location, you can create a new query and then run, update, or manage an existing query.
You can also import a query into a query rule in a Configuration Manager collection. For more information, see How to Create Collections in Configuration Manager.
|The information in this section also appears in the Getting Started with System Center 2012 Configuration Manager guide.|
The following items are new or have changed for queries since Configuration Manager 2007:
The option to export the results of a query is not available in this release. As a workaround, you can copy the query results to the Windows clipboard.
ConceptsQueries in Configuration Manager
For additional resources, see Information and Support for Configuration Manager.
Tip: Use this query to find online documentation in the TechNet Library for System Center 2012 Configuration Manager. For instructions and examples, see Search the Configuration Manager Documentation Library.