We have a history application that requires separate rights. Users would forget to close the main accounting application before logging in as a history user. This would cause data stability problems.
Since we haven't implemented ZENworks (yet), the solution was to remove the NetWare tray icon from the task bar via login script. This was done using a vb script to modify the registry.
The login script references a batch script that calls the vb script. The reason for this is that the changes don't take effect until the next login. In our batch script, we have it auto logout. Then on subsequent logins, it runs through.
REM Disable NetWare Tray Icon
If exist C:\nwti.txt goto nwtiDone
echo "FEB" >> C:\nwti.txt
' Toggle use of NW Tray icon
' Tested on Windows XP SP2
dim strKey, wshShell, intValue
strKey = "HKEY_LOCAL_MACHINE\Software\Novell\Network Provider\Menu Items\Enable Systray Icon"
Set WshShell = WScript.CreateObject("WScript.Shell")
intValue = wshShell.regRead(strKey)
wshShell.regWrite strKey, "no", "REG_SZ"
'msgBox "Nwtray changed to Hidden", vbOk, "NWTray Icon Status"
*Note: To enable the tray icon, change the "no" in the vbscript to "yes" then modify batch script accordingly.
Windows XP SP2 Client Version 4.91 sp1
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.