Use REGREAD to read values from the Windows registry through a Novell login script on Novell Clients 3.0x and 4.5 and higher for Windows.
REGREAD “HIVE,KEY,VALUE"
IMPORTANT:Case is important, and no spaces are allowed 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.
REGREAD "HKLM,Network\Novell\System Config\NetWare DOS Requester\Name Context,0"
This reads the data from the Value Name 0. The data read is placed in the variable, %99. The value can then be used in subsequent login script logic.
The following is a sample script that you can use 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