Administrators need to push out installs or run applications from the login script, but they may not want the scripts to run for VPN users or users from a specific network or address.
You can configure your login script to run only portions of the script, or certain includes, if your system has a specific address or is part of a subnet.
;REM Check to see if your PC is on the 18.104.22.168/24 network.
;REM These Network_addresses are hex.
;REM AC = 172, 10 = 16, 1F = 31, 00 = 0
IF NETWORK_ADDRESS > "AC101F00" AND NETWORK_ADDRESS < "AC101FFF"
Write "This PC is on the 22.214.171.124 network, and logging in over the BoarderManager VPN."
MAP NEXT VOL1:
;REM Check to see if your PC is on the LAN 172.16.30.0/24 network.
IF NETWORK_ADDRESS > "AC101E00" AND NETWORK_ADDRESS < "AC101EFF"
Write "This PC is on the 126.96.36.199 network"
You can use the Windows calculator in scientific mode to figure out what your hex address should be for your network. Just type one octet at a time in decimal mode then change it to hex mode.
- Novell Client 32
- BorderManager (optional)
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.