• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

powershell script to monitor a particular event.

Can someone please advise how to write a powershell program to send an email if a Windows 2008 R2 server has a certain event for example event ID 55.
1 Solution
For you case I suggest to use "Attach a Task to this Event" and use the email option.
I used it and is working great. You can read more about this on next resources: Attaching Tasks to Event Viewer Logs and Events or Getting event log contents by email on an event log trigger.
"Attach a Task to this Event" probably the best option you have, however if you want a powershell script to perform this task then you can check the following script from script center..
Powershell Centralized Log Monitor
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now