Novell Home

My Favorites

Close

Please to see your favorites.

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

(Last modified: 15Feb2002)

This document (10022325) is provided subject to the disclaimer at the end of this document.

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 TID 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

disclaimer

The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.

  • Document ID:
  • 10022325
  • Solution ID: 1.0.40853798.2422589
  • Creation Date: 24Nov1999
  • Modified Date: 15Feb2002
    • NovellManagement Products

      NetWare

Did this document solve your problem? Provide Feedback