Registry - Get values |
Declaration
<AMREGISTRY KEY="text" /> |
Description
Retrieves the values contained in the specified registry key and populates a dataset with results.
IMPORTANT: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 \NetAuto\Automate\\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. |
Examples
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description:
Get all values of registry key HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate 10 and populate dataset "datasetName" with results.
<AMREGISTRY ACTIVITY="get_value" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate 10" RESULTDATASET="datasetName" /> |