NetWare 4.1/9000 Utilities Reference

2-36
Workstation Utilities
NCUPDATE
container and any users below the container, users in and below that container
must update their name context in their NET.CFG file.
To automatically update user NET.CFG files, place a command to execute
NCUPDATE in the login script of the moved or renamed container and every
container in and below it.
When users who are in or below the moved or renamed container log in, LOGIN
recognizes that the context used to log in contains an alias. Then LOGIN sets the
internal script variable LOGIN_ALIAS_CONTEXT to “Y.”
The network supervisor can place a command to run NCUPDATE in the login
script of a container using NetWare Administrator or NETADMIN.
Example
The network supervisor—or a user with the Supervisor object right to the
moved or renamed container—can place the following lines in the login
script of the container and every container in and below the container:
IF LOGIN_ALIAS_CONTEXT = “Y” THEN BEGIN
MAP INS S1:=<server name>/SYS:PUBLIC
#NCUPDATE /NP
MAP DEL S1:
END
When users log in to the server using an alias context, NCUPDATE updates
each users name context in the NET.CFG file.
NOTE: NCUDATE updates the NET.CFG file that the Virtual Loadable Module™
(VLM™) programs load from. The location of this NET.CFG file on users’
workstations may vary, so the path to the NET.CFG file that will be updated is listed
on the screen as NCUPDATE executes.
In the example login script, the supervisor maps a temporary search drive to
SYS:PUBLIC so the container login script can locate NCUPDATE.EXE in
the PUBLIC directory. Then the search drive is deleted.
The supervisor deletes the /NP in the example login script if he or she wants
the users to be prompted to update their NET.CFG files.
Once all user NET.CFG files are updated, the supervisor deletes the alias
that points to the moved or renamed container.