How to read values from the Windows registry through a Novell login script.

  • 10022325
  • 1.0.40853798.2422589
  • 24-Nov-1999
  • 15-Feb-2002

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

Goal

How to read values from the Windows registry through a Novell login script.

Is the REGREAD command supported in an Novell Login script?

Fact

Formerly KB 2942990

Fix

The Novell Clients version 3.0x and 4.5 (and later) include a new login script command called REGREAD. The syntax 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