Read values from the Windows registry through a Novell login script.

  • 10068114
  • NOVL71064
  • 05-Feb-2002
  • 09-Jan-2003

Archived Content: This information is no longer maintained and is provided 'as is' for your convenience.

Goal

Read values from the Windows registry through a Novell login script.

Fact

Novell Clients 3.0x and 4.5 and later.

Symptom

The Novell Clients version 3.0x and 4.5 (and later) include a new login script command called REGREAD.

Fix

The syntax of REGREAD is:

REGREAD "HIVE,KEY,VALUE"

NOTE: Case IS important and there CANNOT be spaces after the commas.

"HIVE" is HKLM, HKCU, HKU, etc.

"KEY" is the path to the value. For example: Network\Novell\System Config\NetWare DOS Requester\Name Context.

"VALUE" is the name of the value if you want to read (a value other than default), otherwise leave it blank.

For Example:
REGREAD "HKLM,Network\Novell\System Config\NetWare DOS Requester\Name Context,0"
This will read the data from the Value Name 0. The data read, will be placed in the variable, %99. The value can then be used in subsequent login script logic.

Below is a sample script that can be used to test this feature:

WRITE "Running REGREAD TEST Script"
REGREAD "HKLM,Network\Novell\System Config\NetWare DOS Requester\Name Context,0"
WRITE "Value = %99"
SET REGVAL="%99"
PAUSE
EXIT