How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

1

Event Viewer is my best friend. Whenever I went into a problem, I always went there first to gather more information before I decided to do anything else. Often it helped. But I always wished that I can do more with these event logs. For example, sometimes I want to get alerted when some critical error occurs, sometimes I just want to launch a specifically program when a warning message pops in. I can’t do none of these without having a 3rd party application in place prior to Windows 7. Now I can.

Let’s say I found an error message in my application event logs that I had no idea when it happened, and what caused it.

image4 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

To get more information, I can now right-click the event and select Attach a Task to this Log, or highlight the event and pick the same task from the Action panel at the right side.

image5 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

Then, a Create Basic Task Wizard appeared, type the name of task in Task box, and some of information about this task in Description box, and click Next.

image6 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

And click another Next.

image7 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

In Action step, there are three type of actions available to select.

image8 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

Selecting each option will bring you different window at next. For this case, I picked Display a message.

image9 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

That’s it, click Finish to close the wizard.

image10 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

Next time when the same error happens, this pre-defined message box will be popping up onto my desktop. Nice.

image12 - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

What’s behind the scene?

What’s really behind thing is the wizard we just walked through created a on-event task in Task Scheduler, which will be triggered by an event from Event Viewer.

image thumb - How To Trigger An Action Automatically When Something Goes Wrong in Windows 7 [Tips]

LEAVE A REPLY

Please enter your comment!
Please enter your name here