Re: email startup event
- From: ggrothendieck@xxxxxxxxx
- Date: 26 Aug 2005 06:57:59 -0700
> 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.
.
- Follow-Ups:
- Re: email startup event
- From: Ramesh, MS-MVP
- Re: email startup event
- References:
- email startup event
- From: ggrothendieck
- Re: email startup event
- From: Ramesh, MS-MVP
- Re: email startup event
- From: ggrothendieck
- Re: email startup event
- From: Ramesh, MS-MVP
- email startup event
- Prev by Date: Re: Cannot logon
- Next by Date: Re: Cannot logon
- Previous by thread: Re: email startup event
- Next by thread: Re: email startup event
- Index(es):
Relevant Pages
|