Registry - Rename key

Declaration

<AMREGISTRY KEY="text" />

Related Topics   

Description

Renames an existing key in the registry.

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 rename a registry key. Don't attempt to rename keys without a very good reason. If Windows can't find specific registry keys it needs, it might not boot or operate properly.

NOTE:To make changes to a registry key, you must have the appropriate permissions. 

Parameters

general

Property

Type

Required

Default

Markup

Description

Registry key

Text

Yes

(Empty)

KEY="HKEY_CURRENT_USER\Software

\NetAuto\Automate\\AMSERVICES"

The registry key to rename.

New name

Text

Yes

(Empty)

VALUEDATA="HKEY_CURRENT_USER\Software

\NetAuto\Automate\\AMSUPPORT"

The new name for the registry key to be renamed.

 

Description

Error Causes

On Error

Examples

NOTE:
  • 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:

Rename Registry Key "HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate 10\bugusKeyName" to "Whatever".

<AMREGISTRY ACTIVITY="rename_key" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\Automate 10\bugusKeyName" VALUEDATA="Whatever" />