Get a registry key

As part of creating or modifying a discovery pattern, you can use the Get registry key operation to retrieve and select registry key attributes to store in a table.

Before you begin

Navigate to the relevant pattern step:

  1. On the pattern form, select the relevant identification section for Discovery.

    Alternatively, select the relevant identification or connection section for Service Mapping.

  2. Select the relevant pattern step or click to add a step.

Basic knowledge of programming is desirable.

Role required: pd_admin

About this task

This operation is relevant only for Windows.


  1. Select Get registry key from the Operation list.
  2. If working in the Debut Mode, perform the following steps:
    1. Click Browse and select the registry key.
      The selected key path is placed in the Registry key path field. A form opens and displays a list of keys next to the tree.
      You can use variables. You can also enter a value from the specific field in a tabular variable as described in Enter values and variables in patterns.
    2. Select the key to show the attributes and click OK.
  3. If not working in the Debug Mode, specify the registry key path in the Registry key path field.
  4. Select the relevant option from the Build Variables-Keys Table list:
    • Select By Using All Keys From The Registry Directory, and enter the name of the table to contain the keys and variables.
    • Select By Building The Table From The Browser or Manually, and specify the keys on which you want to build the table. If there is more than one key, it creates a table to hold variables.
  5. Define the name of the table to which you want to save the operation result.
  6. Select Terminate to stop discovery if no results are found.
  7. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.


Field Value
Hierarchy Application > Infrastructure Server > Web Server
CI Type Microsoft iis Web Server [cmdb_ci_microsoft_iis_web_server]
Pattern IIS
Section Identification for HTTP(s) entry point(s) for IIS6
Step number and Name 2. get version from registry

Get registry keys and values of "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp” and save the value in the "version" variable.

Example of the Get Registry Key operation

What to do next