cancel
Showing results for 
Search instead for 
Did you mean: 
Elio_C
Level 6

A few lines PowerShell I wrote to send the detail of Event Log events.

I use it to notify me when Archiving tasks end (events 3454 and 3446) and when my backup mode script triggers (events 7058, 7079, 7060 and 7081).

3454.jpg

 

7058.jpg

Set the appropriate email details in the script.

$MailFrom="Sender"
$MailTo="Recipient"
$SMTPServer="SMTP Server"

Run manually with the event ID, "powershell -f EventID.ps1 3454" or I use the "attach task to event" from Event Viewer and set the above as the program

Event Viewer Tasks.JPG

Not Enterprise level notifications but it gives me an early heads up of any potential issues. 

Version history
Last update:
‎03-01-2016 01:15 AM
Updated by: