이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

How to Create Queries in Configuration Manager

업데이트 날짜: 2011년 12월

적용 대상: System Center 2012 Configuration Manager

Use the procedures in this topic to help you create or import queries in System Center 2012 Configuration Manager.

Use this procedure to help you create queries in Configuration Manager.

  1. In the Configuration Manager console, click Monitoring .

  2. In the Monitoring workspace, click Queries and then, in the Home tab, in the Create group, click Create Query .

  3. On the General tab of the Create Query Wizard , specify a unique name and an optional comment for the query.

  4. If you want to import an existing query to use as a basis for the new query, click Import Query Statement and then, in the Browse Query dialog box, select an existing query that you want to import, and then click OK .

  5. In the Object Type list, select the type of object you want the query to return. The following table describes some examples of the type of object you can search for:

     

    Object type Description

    System Resource

    Use to search for common system attributes such as the NetBIOS name of a device, the client version, the client IP address, and Active Directory Domain Services information.

    User Resource

    Use to search for common user information such as user names, user group names, and security group names.

    Deployment

    Use to search for common attributes of a deployment such as the deployment name, schedule, and the collection to which it was deployed.

  6. Click Edit Query Statement to open the <Query Name>Statement Properties dialog box.

  7. On the General tab in the <Query Name>Statement Properties dialog box, specify the attributes that this query returns and how they are to be displayed. Click the New icon to add a new attribute. You can also click Show Query Language to enter or edit the query directly in WMI Query Language (WQL).

  8. On the Criteria tab of the <Query Name>Statement Properties dialog box, specify criteria that are used to refine the results of the query. For example, you could return only resources that have a site code of ‘XYZ’ in the query results. You can configure multiple criteria for a query.

  9. On the Joins tab in the <Query Name>Statement Properties dialog box, you can combine data from two different attributes into your query results. Although Configuration Manager automatically creates query joins when you choose different attributes for your query result, the Joins tab provides more advanced options. The attribute classes supported by System Center 2012 Configuration Manager are:

     

    Join type

    Description

    Inner

    Displays only matching results — always used by joins that are created automatically.

    Left

    Displays all results for the base attribute and only the matching results for the join attribute.

    Right

    Displays all the results for the join attribute and only the matching results for the base attribute.

    Full

    Displays all the results for both the base attribute and the join attribute.

    For more information about how to use Join operations, see your SQL Server documentation.

  10. Click OK to close the <Query Name>Statement Properties dialog box.

  11. On the General tab of the Create Query Wizard , specify whether the results of this query are not limited to the members of a collection, are limited to the members of a specified collection, or prompt for a collection each time the query is run.

  12. Complete the wizard to create the query. The new query is displayed in the Queries node in the Monitoring workspace.

Use this procedure to help you import a query into Configuration Manager. For information about how to export queries, see How to Manage Queries in Configuration Manager.

  1. In the Configuration Manager console, click Monitoring .

  2. In the Monitoring workspace, click Queries and then, in the Home tab, in the Create group, click Import Objects .

  3. On the MOF File Name page of the Import Objects Wizard , click Browse to select the Managed Object Format (MOF) file containing the query that you want to import.

  4. Review information about the query to be imported and then complete the wizard. The new query is displayed in the Queries node in the Monitoring workspace.

-----
추가 리소스는 Information and Support for Configuration Manager(Configuration Manager에 대한 정보 및 지원)를 참조하십시오.

팁: 이 쿼리를 사용하여 TechNet 라이브러리에서 System Center 2012 Configuration Manager에 대한 온라인 문서를 찾아보십시오. 지침 및 예제는 Search the Configuration Manager Documentation Library(Configuration Manager 문서 라이브러리 검색)를 참조하십시오.
-----
이 정보가 도움이 되었습니까?
(1500자 남음)
Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
© 2013 Microsoft. All rights reserved.