Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Task scheduler ONEVENT Schedule Frequency.

Reply
Thread Tools Display Modes

Task scheduler ONEVENT Schedule Frequency.

 
 
Wake-Up-Jeff
Guest
Posts: n/a

 
      07-04-2007
The vista task scheduler schtasks.exe provides the facility to take an
action when an event has been recorded in the Windows event log.

This facility is only really useful if the triggered action has access to
aspects of the event, such as date, time and event message. Is there any way
to get this information passed to the triggered action from the event log
entry?

I can't see a way, either by using the command line schtasks.exe, or the
task scheduler GUI.


 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a

 
      07-04-2007

"Wake-Up-Jeff" <> wrote in message
news:...
> The vista task scheduler schtasks.exe provides the facility to take an
> action when an event has been recorded in the Windows event log.
>
> This facility is only really useful if the triggered action has access to
> aspects of the event, such as date, time and event message. Is there any
> way to get this information passed to the triggered action from the event
> log entry?
>
> I can't see a way, either by using the command line schtasks.exe, or the
> task scheduler GUI.
>
>


Don't know of way of doing that, but since you know the event id / log that
triggered it, the task that runs can process the Event Logs for the most
recent event with that particular event id.

--
Jon


 
Reply With Quote
 
Wake-Up-Jeff
Guest
Posts: n/a

 
      07-04-2007

"Jon" <> wrote in message
news:...
>
> "Wake-Up-Jeff" <> wrote in message
> news:...
>> The vista task scheduler schtasks.exe provides the facility to take an
>> action when an event has been recorded in the Windows event log.
>>
>> This facility is only really useful if the triggered action has access to
>> aspects of the event, such as date, time and event message. Is there any
>> way to get this information passed to the triggered action from the event
>> log entry?
>>
>> I can't see a way, either by using the command line schtasks.exe, or the
>> task scheduler GUI.
>>
>>

>
> Don't know of way of doing that, but since you know the event id / log
> that triggered it, the task that runs can process the Event Logs for the
> most recent event with that particular event id.
>
> --
> Jon
>
>

Agreed. But I think that is a little clumsy.
In this case, it would be better to use WMI, which at least gives you the
event detail when the event is triggered.
I would prefer to use the scheduler, as it gives a nice interface, and it
provides a really rich environment for event triggers.


 
Reply With Quote
 
Jon
Guest
Posts: n/a

 
      07-04-2007

"Wake-Up-Jeff" <> wrote in message
news:...
>
> "Jon" <> wrote in message
> news:...
>>
>> "Wake-Up-Jeff" <> wrote in message
>> news:...
>>> The vista task scheduler schtasks.exe provides the facility to take an
>>> action when an event has been recorded in the Windows event log.
>>>
>>> This facility is only really useful if the triggered action has access
>>> to aspects of the event, such as date, time and event message. Is there
>>> any way to get this information passed to the triggered action from the
>>> event log entry?
>>>
>>> I can't see a way, either by using the command line schtasks.exe, or the
>>> task scheduler GUI.
>>>
>>>

>>
>> Don't know of way of doing that, but since you know the event id / log
>> that triggered it, the task that runs can process the Event Logs for the
>> most recent event with that particular event id.
>>
>> --
>> Jon
>>
>>

> Agreed. But I think that is a little clumsy.
> In this case, it would be better to use WMI, which at least gives you the
> event detail when the event is triggered.
> I would prefer to use the scheduler, as it gives a nice interface, and it
> provides a really rich environment for event triggers.
>
>




Not ideal, I agree. It's a pity there's not more information being passed as
argument to the task triggered by the event, although it's quite possible
that there's hidden option that's not been documented, similar to the
$(Arg0) that you can pass to a program etc. Would be interested too in
knowing it, if there is. Would be nice if someone from MS could shed some
light on the issue.

--
Jon


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler repeat task duration bug? sm02463 Windows Vista General Discussion 4 12-06-2008 06:40 PM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
task scheduler doesn't start delayed task wuschba Windows Vista General Discussion 6 07-26-2007 08:06 AM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista General Discussion 6 07-11-2007 09:01 PM
Schedule Task totomaster Windows Vista Performance 12 06-26-2007 03:20 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59