Powershell: Email event logs to X


One of the things that has bothered me for awhile is trying to get across the sheer quantity of servers I have and making sure they are all happy.  There are a lot of tools and bits of software, most use agents, to monitor how well your server is feeling.  Being the cheapskate I am I thought I’d write a powershell script to just email me the days event logs that have either warning, error or critical.  If the email doesn’t come through then we know there’s something up with the mail server :p

So, here is the quick script:

So, there we go.

Leave a comment