Registry - Create key |
Declaration
<AMREGISTRY KEY="text" /> |
Description
Creates a key in the registry. Multiple levels can be specified. Any keys that do not exist will be created.
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
Commonly
used to create a registry key in order to set a name/value pair on that
key in subsequent steps using the Create
value activity.
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". |
Example
- 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:
This sample task adds the following registry key - ""HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate\TaskService\Agent"
<AMREGISTRY KEY="HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate\TaskService\Agent" />:
|