Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Task scheduler ONEVENT Schedule Frequency.

Reply
 
Old 07-03-2007   #1 (permalink)
Wake-Up-Jeff


 
 

Task scheduler ONEVENT Schedule Frequency.

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.



My System SpecsSystem Spec
Old 07-03-2007   #2 (permalink)
Jon


 
 

Re: Task scheduler ONEVENT Schedule Frequency.


"Wake-Up-Jeff" <artvandal8@hotmail.com> wrote in message
news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...
> 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


My System SpecsSystem Spec
Old 07-03-2007   #3 (permalink)
Wake-Up-Jeff


 
 

Re: Task scheduler ONEVENT Schedule Frequency.


"Jon" <Email_Address@SomewhereOrOther.com> wrote in message
news:OYg3WDevHHA.2352@TK2MSFTNGP03.phx.gbl...
>
> "Wake-Up-Jeff" <artvandal8@hotmail.com> wrote in message
> news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...
>> 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.


My System SpecsSystem Spec
Old 07-04-2007   #4 (permalink)
Jon


 
 

Re: Task scheduler ONEVENT Schedule Frequency.


"Wake-Up-Jeff" <artvandal8@hotmail.com> wrote in message
news:u2bXrcevHHA.4800@TK2MSFTNGP05.phx.gbl...
>
> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
> news:OYg3WDevHHA.2352@TK2MSFTNGP03.phx.gbl...
>>
>> "Wake-Up-Jeff" <artvandal8@hotmail.com> wrote in message
>> news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...
>>> 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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Task Scheduler Compatibility module task status update failed General Discussion
Task Scheduler Error-task image corrupt or has been tampered with User_Feed_Synchroni General Discussion
Task Scheduler: Create task to open webpage? Vista General
Schedule a task with Vista task Scheduler wakes up computer and mo Vista General
Task scheduler returns an error : the task image is corrupt ortamp Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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