'Removes Items from Notification Area

On Error Resume Next

Dim WshShell, sMsg, sInput, sDone

Set WshShell = WScript.CreateObject("WScript.Shell")

sMsg = "This script will remove items from the Notification Area." & vbCr & vbCr _
 & "To work correctly, the script will close and restart the Windows Explorer shell.  This will not harm your computer." & 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?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegDelete "HKCR\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\IconStreams"
WshShell.RegDelete "HKCR\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\PastIconsStream"

For Each Process in GetObject("winmgmts:"). _
ExecQuery ("select * from Win32_Process where name='explorer.exe'")
Process.terminate(0)

Next

sDone = "Items from Notification Area have been Removed!" & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If

