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. Before making changes to the registry, you should back up any valued data on your computer.

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".

 

Description

Error Causes

On Error

Example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: This sample task adds the following registry key - ""HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\AutoMate 10\TaskService\Agent"

<AMREGISTRY KEY="HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\AutoMate 10\TaskService\Agent" />