Re: email startup event

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> The Send To > Mail Recipient does a MAPI call. You can try it and see.

I tried it and it gives a similar popup so it may be a MAPI call.

>Alternately if you know scripting,

Yes, I have written VBScript/Jscript and have called COM objects
and used Scriptomatic.

> you may write a Process Monitoring script
> using WMI that monitors the create event for outlook.exe and
> displays the Parent Process Id. You may use "Win32_Process"
> for that. For sample process monitoring scripts, see the
> "Scripting Guy" colums at Microsoft.com

What I was doing was: when I saw the popup I would just use
psloglist.exe from sysinternals.com to list out events but could
not find the event. I am not sure
1. how I identify the proper event or
2. is there something I have to do to cause the event
to be entered into the log before it happens?

Not sure if I am looking in the right place but the Scripting Guy
column I found

http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug05/hey0816.mspx
has this example:

strComputer = "."

Set objWMIService = GetObject("winmgmts:{(Security)}\\" & _
strComputer & "\root\cimv2")

Set colMonitoredEvents = objWMIService.ExecNotificationQuery _
("Select * from __InstanceCreationEvent Where " _
& "TargetInstance ISA 'Win32_NTLogEvent' " _
& "and TargetInstance.EventCode = '0' ")

Do
Set objLatestEvent = colMonitoredEvents.NextEvent
Wscript.Echo objLatestEvent.TargetInstance.User
Wscript.Echo objLatestEvent.TargetInstance.TimeWritten
Wscript.Echo objLatestEvent.TargetInstance.Message
Wscript.Echo
Loop

but as far as I can understand all that does is display
information that was already in the event log. Is that right?
If that's so then psloglist.exe from sysinternals.com could also
find it via:

psloglist | findstr whatever

but:

1. is there is something I need to do to get the
Outlook/CDO/MAPI event to be entered into the event
log in the first place?

2. if I search the log, i.e.
psloglist | findstr whatever
then what do I used for whatever?

Thanks.

.



Relevant Pages

  • Re: Display a pop-up Dialog Box
    ... > PopUp are available within VBS. ... and that is visible until the user press OK, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Blocking Pop-Ups
    ... > The only way to block popups altogether is to disable scripting. ... > the popup from loading ads from blocked ad addresses. ... > Norton Personal Firewall was based. ... > screwed it up by now or where they have hidden the named settings, ...
    (comp.security.firewalls)
  • Re: Neues Fenster drucken
    ... Der Benutzerkreis ist auf Administratoren in unserer Einrichtung ... Wenn du den Button in das Popup einbauen wolltest (document.write deutet ... mit Scripting funktioniert, ... Weil unvollständige Dokumente in den Stream geschrieben werden. ...
    (de.comp.lang.javascript)
  • Re: msgboxes or popups ?
    ... do a popup without any buttons and nased on when executing commands. ... I am going to stop a service and while stopping popup a message stating "stopping service". ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
    (microsoft.public.scripting.vbscript)
  • Re: Loadrunner Mapi Script
    ... which is used as part of monitoring Microsoft Exchange in HP BAC. ... new to scripting and was wondering if anyone knew of a Mapi flag/ ... that assumes you're using extended mapi -- if you're using simple ...
    (microsoft.public.win32.programmer.messaging)