'This script will always show all Inactive Icons in the System Tray Area of the Notification Taskbar.

On Error Resume Next

Dim WshShell, ObjShell, Message

Set WshShell = WScript.CreateObject("WScript.Shell")

If WScript.Arguments.length = 0 Then
Set ObjShell = CreateObject("Shell.Application")
ObjShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" &_
 " RunAsAdministrator", , "runas", 1
Else

Message = "This script will allow inactive Icons in the System Tray to show in Notification area of the Taskbar." & vbCr & vbCr _
 & "This action will Delete Registry Keys." & vbCr & vbCr _
 & "After you Run this script you must LogOff/On for this change to take effect." & vbCr & vbCr _
 & "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If M = 6 Then 

WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayItemsDisplay"
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayItemsDisplay"

Message = "System tray Icons will now show in the system tray Notification Area of the Taskbar." & vbCr & vbCr _
 & "Don't forget to LogOff/On for this change to take effect." & vbCr & vbCr _ 
 & "This script was downloaded from www.paulsxp.com." 
MsgBox Message, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If
End If
