Template - createRegistryValueTemplate

Template - createRegistryValueTemplate

Description :

This command creates a template with one registry value asset.

The format of the path to the value is the same as the format for a registry key, with the value name being the last element on the path.

For example, to specify the value 'test1' under a key 'key1' you would use the following path: "HKEY_LOCAL_MACHINE/SAM/key1/test1"

Windows allows registry values to contain the backslash '/' character. If a registry value contains the backslash character, you must escape it with a forward slash '/'.

For example, to specify the value 'back/slash' under key 'key1' you would use the following path: "HKEY_LOCAL_MACHINE/SAM/key1/back//slash" This command returns a handle to the newly created template. The handle can be used for other commands that need a reference to the new template.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateName

String

Template name.

groupId

Integer

Handle to the group that should contain the template.

bExplicit

Boolean

True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.)

assetPath

String

NSH-style path to the asset.

Example

The example for createRegistryKeyTemplate shows how to create a template for an asset similar to this one.

Was this page helpful? Yes No Submitting... Thank you

Comments