Registry - Get values

Declaration

<AMREGISTRY ACTIVITY="get_value" KEY="text" RESULTDATASET="text" />

Related Topics   

Description

Retrieves the values contained in the specified registry key and populates a dataset with results.

WARNING: Incorrectly editing the registry may severely damage your system. Do not edit the Windows registry unless you are confident about doing so.

Practical usage

Used to retrieve the value associated with the specified name, in the specified registry key. Can also be used to determine whether a given value exists in a specific registry key.

Parameters

General

Property Type Required Default Markup Description
Registry key Text Yes (Empty) KEY="HKEY_CURRENT_USER\Software\Fortra\Automate Desktop\AMSERVICES" The full registry path of the key to create, beginning with a valid registry root, such as "HKEY_CURRENT_USER".
Create and populate dataset with registry values Text Yes (Empty) RESULTDATASET="datasetName" The name of the dataset to create and populate with retrieved values.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task gets all values from a registry key and then creates and populates a dataset with the results.

Copy
<AMREGISTRY ACTIVITY="get_value" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\<Automate Desktop or Automate> <product version number>" RESULTDATASET="datasetName" />