Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

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.
Avatar of Ciprian Lozonschi
Ciprian Lozonschi
Flag of Czechia image

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.
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial