Login Script Macros

Novell Client login script commands allow you to use identifier variables to make login scripts more efficient and flexible. Application Launcher supports many, but not all, login script identifier variables for use in Application object macros.

For information about using the macros in a valid Application object property, see Application Object Properties Where Macros Can Be Used.


Supported Login Script Identifier Variables

The following is a list of supported login script identifier variables and what they mean. Alternate variable names are shown in parentheses.

Macro Description

%COMPUTER_NAME%

The name of the computer. For example: work_pc.

%DAY%

Numeric day of the month. For example: 01, 10, 15.

%FILESERVER% (%FILE_SERVER%)

Name of the NetWare file server or eDirectory monitored connection. For example: APPS_PROD.

%FULL_NAME%

Full name attribute of the User object. This is supported by virtue of Application Launcher's support for eDirectory attributes from the User object.

%HOUR24% (%24HOUR%)

Time of the day according to a 24-hour clock. For example: 02, 05, 14, 22.

%HOUR% (%HOURS%)

Hour of the day. For example: 0 = 12, 13 = 1.

%LAST_NAME%

Last name of the current user (also known as the user's eDirectory Surname attribute). For example: Jones.

%LOGIN_NAME%

First eight bytes of the user's eDirectory object name. For example: jsmith.

%MINUTE% (%MINUTES%)

Current minute. For example: 02, 59.

%MONTH%

Current month number. For example: 01 for January.

%NDAY_OF_WEEK%

Numeric day of the week. For example: 1 for Sunday, 2 for Monday.

%NETWORK% (%NETWORK_ADDRESS%)

Workstation network address. For example: 01010120.

%OS_VERSION%

Version of the OS. For example: v5.00 (Win3x shows the DOS version, Win 98 and Win 2000/XP shows the Windows version).

%OS

OS type. For example: MSDOS, WIN98, WINNT, WIN2000, WINXP. (Win3 shows MSDOS.)

%PLATFORM%

Platform running. For example: WIN, W98, WNT, W2000, WXP.

%PHYSICAL_STATION% (%P_STATION%)

MAC address. For example: 0000C04FD92ECA.

%REQUESTER_CONTEXT%

Context of the requester for the selected tree.

%SECOND% (%SECONDS%)

Number of seconds. For example: 03, 54.

%SHORT_YEAR%

Short year number. For example: 97, 00.

%WINVER%

Windows version. For example: v3.11, v4.00.

%WORKSTATION_ID%

The name of the workstation object.

%WORKSTATION_TREE%

The name of the tree in which the workstation is located.

%WORKSTATION_DN%

The distinguished name and context of the workstation object.

%YEAR%

Full year number. For example: 2000, 2001.


Unsupported Login Script Identifier Variables

The following is a list of login script macros that Application Launcher does not support:

ACCESS_SERVER
AM_PM
DAY_OF_WEEK
DIALUP
ERROR_LEVEL
GREETING_TIME
LOGIN_ALIAS_CONTEXT
LOGIN_CONTEXT
MACHINE
MEMBER OF
NOT MEMBER OF
MONTH_NAME
NETWARE_REQUESTER
OFFLINE
PASSWORD_EXPIRES
REQUESTER_VERSION
SHELL_TYPE
SHELL_VERSION
SMACHINE
STATION
USER_ID