Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-03-2007, 07:00 PM
Wake-Up-Jeff
Newsgroup Contributor
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-03-2007, 07:00 PM
  #2 (permalink)  
Old 07-03-2007, 07:20 PM
Jon
Newsgroup Contributor
 
Posts: n/a
Re: Task scheduler ONEVENT Schedule Frequency.


"Wake-Up-Jeff" <artvandal8********.com> wrote in message
news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...[color=blue]
> 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.
>
>[/color]

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-03-2007, 08:10 PM
Wake-Up-Jeff
Newsgroup Contributor
 
Posts: n/a
Re: Task scheduler ONEVENT Schedule Frequency.


"Jon" <Email_Address@SomewhereOrOther.com> wrote in message
news:OYg3WDevHHA.2352@TK2MSFTNGP03.phx.gbl...[color=blue]
>
> "Wake-Up-Jeff" <artvandal8********.com> wrote in message
> news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...[color=green]
>> 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.
>>
>>[/color]
>
> 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
>
>[/color]
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-04-2007, 02:20 PM
Jon
Newsgroup Contributor
 
Posts: n/a
Re: Task scheduler ONEVENT Schedule Frequency.


"Wake-Up-Jeff" <artvandal8********.com> wrote in message
news:u2bXrcevHHA.4800@TK2MSFTNGP05.phx.gbl...[color=blue]
>
> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
> news:OYg3WDevHHA.2352@TK2MSFTNGP03.phx.gbl...[color=green]
>>
>> "Wake-Up-Jeff" <artvandal8********.com> wrote in message
>> news:eccSF3dvHHA.1204@TK2MSFTNGP03.phx.gbl...[color=darkred]
>>> 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.
>>>
>>>[/color]
>>
>> 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
>>
>>[/color]
> 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.
>
>[/color]



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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista 6 07-11-2007 02:10 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista 0 06-06-2007 07:00 PM
Task Schedule Benny Van Windows XP 0 03-30-2007 10:45 AM
Schedule Task Jessica@aol.com Windows XP 3 03-05-2007 08:15 PM
schedule a task without using the wizard? Jackie D Windows XP 3 01-04-2007 01:56 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 11:58 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0