Saturday, December 26, 2015

Event Viewer Tasks

I just want to touch against a feature in Windows Server 2008 R2 - 2012 which I believe is very cool.  Windows Event Viewer has the ability to launch tasks automatically when a particular error occurs.  This is great for companies that do not have System Center (or similar) tools in the environment to perform remediation tasks when problems occur on server infrastructure.

The button in Event Viewer is called "Attach Task to This Event"

Clicking it we can see that it actually relies on the Task Scheduler service to monitor the event logs.

Select Start a Program then associate it with cscript.exe or powershell.exe to launch a script that performs remediation tasks whenever the event error reoccurs.  You can instruct your script to also notify administrators via email which is very easy with PowerShell using the Send-MailMessage cmdlet.

1 comment:

  1. windows 10 activation servers , windows 10 product key sale , product key for window 7 ultimate , windows 10 activation pirates bay , windows 10 activation key generator , office 2013 activation keys , windows 7 home premium oem keygen , windows 10 product key hp stream , ssfbn3

    windows 10 pro key

    office 2013 pro key sale

    cheap visual studio key buy