Cool Solutions

Remove the NetWare Tray Icon from the Taskbar via the Login Script


March 2, 2007 10:27 am






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.

login script:


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

' 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

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized


Disclaimer: This content is not supported by Micro Focus. 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 it thoroughly before using it in a production environment.