Jaa


Introduction to Queries in Configuration Manager

 

Updated: May 14, 2015

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 Configuration Manager SP2, System Center 2012 R2 Configuration Manager, System Center 2012 R2 Configuration Manager SP1

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.

What’s New in Configuration Manager

Note

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.