Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to create a scheduled task that will take a custom view I have created in Server 2008 Event Viewer and email all the events in a .xml format once a week (Monday morning). Bonus points if you can RAR or ZIP the .xml prior to sending it in the email.

I can do this manually by saving the custom view then compressing it and publishing it to a website for download. It would be much nicer to automate it and send via email. Having the file in a location in Inetpub for download is also very acceptable.

Here is my filter settings

  <Query Id="0" Path="Application">
    <Select Path="Application">*[System[Provider[@Name='ASP.NET 2.0.50727.0' or @Name='ASP.NET 4.0.30319.0'] and (Level=1  or Level=2 or Level=3)]]</Select>

Thank you for the advice.

share|improve this question

1 Answer 1

Windows Server 2008 allows you to create a scheduled task that is triggered when certain events are written to the event log:

enter image description here

The scheduled task can be configured to send an e-mail:

enter image description here

Granted, it will email when the event happens, rather than once a week. But that's the price you pay for using the built-in features of Windows.

share|improve this answer
Offensive, and not what I asked for..... I am familiar with sending on event emails using the task scheduler. This is not an acceptable solution. To get 100 emails about errors/Warnings a week, I may as well just look at the actual logs and save the resources.... There is nothing lazy about automation so I can focus on tasks that require actual thought. –  Campo Mar 14 '11 at 15:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.