How to Assign NetWare Variables to Windows NT Environment Variables (191748)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q191748

SUMMARY

On a computer running Windows NT Workstation Client Service for NetWare (CSNW) or a computer running Windows NT Server Gateway Service for NetWare (GSNW), values from NetWare login script variables may be assigned to the Windows NT Environment variables when a user logs on. Examples of these NetWare login script variables include %LOGIN_NAME, %FULL_NAME, and %P_STATION, among others.

MORE INFORMATION

Values are assigned from NetWare login script variables to Windows NT environment variables in a NetWare login script. This script exists on a NetWare server and can either be a personal, system, or container login script. Use the following syntax in the script to assign the data:
   SET NTVariable="%NetWare_Variable"
				

where NTVariable is the variable you would like to exist in the user's environment when the logon is complete, and %NetWare_Variable is the NetWare login script variable you want to get the data from, to assign to NTVariable.

The following are some examples you can use in the login script:
   SET LOGIN_NAME="%LOGIN_NAME"
   SET FULL_NAME="%FULL_NAME"
   SET MAC_ADDRESS="%P_STATION"
				

Modification Type:MajorLast Reviewed:6/3/2003
Keywords:kbhowto KB191748