Article
Problem:
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.
Solution:
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.
Example:
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.
login script:
@Z:\Resources\batches\login.bat
login.bat:
REM Disable NetWare Tray Icon
If exist C:\nwti.txt goto nwtiDone
echo "FEB" >> C:\nwti.txt
wscript.exe z:\resources\batches\scripts\NWTrayIconNo.vbs
shutdown -l
:nwtiDone
NWTrayIconNo.vbs:
' 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.
Environment:
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.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 5395 reads


0