Vista: Creating a Scheduled Task that Notifies you when an Event in the Event Log Occurs
There are many Event Log events that you may want to actually be notified are happening. For instance, the lovely “HDD might be failing.”
In this example, I’ll make a scheduled task to pop-up a notice window when the controversial 4226 Event happens.
There are two method. Going right into Task Scheduler (start>run> “task scheduler” or “taskschd.msc”> enter; or start>run> “Control Panel\Administrative Tools” then double-click on Task Scheduler) and making a scheduled task that… well, that’s a whole lot of unnecessary writing. Let’s just do it the more convenient way:
- Open your Event Log viewer (start>run> “eventvwr.exe”> enter)
- In the tree: Windows Logs\System and wait.
- Find the Event in the logs, right-click and select “Attach task to this event” (this is also an option on the right-side menu Event Actions menu). Wait.
- Name the Event. Write a description.
- “When an Event is Logged” should already be filled out.
- On the action menu, select “Display a message.”
- Type a Title for the message window, and type a message to appear in the message window.
You can also set it to send an Email via SMTP, which is pretty rad. See this previous post for some free SMTP servers.
I can imagine this was a feature of previous versions of Windows, specifically Server, but I never had seen it.