How to prevent NAL app execution in script
(Last modified: 15Jan1999)
This document (2937040) is provided subject to the disclaimer at the end of this document.
Q: Is there a way to prevent a user from launching a Novell Application Launcher Application they have been associated with?
A: Yes, there is a login script command that can be used in the applications Script tab in the "Run before launching" window. The following is an example to prevent members of a group from not running an application:
IF MEMBER OF "NOT_TRUSTED" THEN TERM "1"
This type of syntax could also be used to prevent machines that have applications installed locally from running them on the network. This will resolve the frequent laptop/desktop problem where all laptops have the software installed locally, and the desktops execute the software from the network. Determining whether or not to launch the application by machine instead of by user/group can be done by creating an environment variable such as LAPTOP and setting it equal to 1 in the AUTOEXEC.BAT. The following is a suggested example of this.
NAL Application Script
IF <LAPTOP>=1 THEN TERM "1"
Windows 95 Clients previous to the ZENworks Client for Windows 95 version 2.5 did not recognize the DOS environment variables if used in a NAL pre-launch script (though it does recognize a NetWare variable such as LOGIN_NAME or using the IF MEMBER OF "[group]" command).
When the TERM "1" login script command is executed, the user will receive the following error:
"Setup Resources Status
Application was not launched due to a terminate command in the pre-launch script."
This message cannot be customized.
NOTE: There are no conditions where the TERM command will function if you are using the 2.2 version of IntraNetWare Client for Windows 95.
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:
- Creation Date: 14Apr1998
- Modified Date: 15Jan1999
Did this document solve your problem? Provide Feedback