Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$GETREGVALUE (get a registry value)

$GETREGVALUE acquires the specified registry value.

Organization of this page

Syntax

$GETREGVALUE('registry-name')

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

ERROR

Registry acquisition failed.

Script execution interrupted

Indicates one of the following:

  • The attribute of the specified registry is not a character string or DWORD.

  • An invalid argument was specified, or an error other than the above occurred.

Example

The following example acquires the value of KEYVERSION (1050):

[SET_VALUE]
  AIMVERSION = $GETREGVALUE('KEYVERSION')
  STATUS = $GETSTATUS()
[IF]
  STATUS = NORMAL
[THEN]
  [SET_VALUE]
    MSG = 'AIMVERSION = ' + AIMVERSION
    $ECHO(MSG)
[ELSE]
  [SET_VALUE]
    MSG = '$GETREGVALUE (' + STATUS + ')'
    $ECHO(MSG)
[IF_END]
Execution result:

AIMVERSION = 1050