Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Define a WMI query

Log in to subscribe to topics and get notified when content changes.

Define a WMI query

Use the WMI query operation to execute a query on a remote Windows system either explicitly or automatically. Successful values are logged in a specified target table.

About this task

This operation is relevant only for Windows.


  1. Select WMI query from the Operation list in one of the following locations:
    • the Identification Sections or Connectivity Sections for Service Mapping
    • the Step window for Discovery
  2. Define the namespace path in the Namespace field.
  3. If in the debug mode:
    1. Click Get WMI data to populate the table and field values automatically.
    2. Select a table from the Table name pane.
      The field values are displayed in the Fields pane.
    3. Select a table from the Table name pane.
  4. If you are working in the manual mode, manually configure the following parameters:
    Field Description
    Table name Search for or select the table name. Table fields are shown in the Fields section.
    Fields Shows the fields in the table. Select the applicable fields for the query.
  5. Define parameters and operators for the condition in the Condition clause.
    The actual query text is displayed in the Full statement.

    Defining parameters for the Put file operation.
  6. Enter the variable for the table in which the retrieved data is saved in the Target table field.
    You can enter a value from the specific field in a table as described in Useful shortcuts in Pattern Designer.
  7. Select the Terminate check box to terminate discovery if no results are found.


The following configuration is an example of the WMI query operation.
Field Value
Hierarchy Applications > Directory Services
Pattern IIFP On Windows Pattern
Section AD Home Forest connectivity stage-wmi
Step number and Name 1. Get all agents details via WMI step

This step uses the WMI Query operation to extract data on agents from the MicrosoftIdentityIntegrationAgent namespace and save this data in the variable table named $ManagementAgents.