共用方式為


About Configuration Manager Queries

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

You can create and run the queries that are accessible in the Microsoft System Center Configuration Manager 2007 console under Queries. The queries can be used to locate objects in a Configuration Manager 2007 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.

Note

For information about using Queries in Configuration Manager 2007, see https://go.microsoft.com/fwlink/?LinkId=133894.

SMS_Query

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.

See Also

Concepts

Configuration Manager Extended WMI Query Language
Configuration Manager Result Sets
Configuration Manager Special Queries
How to Create a Configuration Manager Query
How to Run a Configuration Manager Query
SMS_Query Server WMI Class