Registry - Rename value

Declaration

<AMREGISTRY ACTIVITY="rename_value" KEY="text" VALUE="text" VALUEDATA="text" />

Related Topics   

Description

Renames the current value of an existing registry key.

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 change registry values.

NOTE: Many of the keys that control Windows itself have access restrictions and can be modified only by an Administrator.

Parameters

general

Property

Type

Required

Default

Markup

Description

Registry key

Text

Yes

(Empty)

KEY="HKEY_CURRENT_USER\Software

\NetAuto\Automate\\AMSERVICES"

The registry which contains the value to rename.

Value name

Text

Yes

(Empty) VALUE="Width"

The name of the value to rename.

New name

Text

Yes

(Empty)

VALUEDATA="HKEY_CURRENT_USER\Software

\NetAuto\Automate\\AMSUPPORT"

The new name for the value 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 value "bogusName" in key "HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\bugusKeyName" to "Whatever".

<AMREGISTRY ACTIVITY="rename_value" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\bugusKeyName" VALUE="bogusName" VALUEDATA="Whatever" />