Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Email events specified by event id with Powershell, and then keep doing so

$
0
0
Ok, many of you may have seen the progression of my questions about event logging.  It began with an entire vbscript, which had some issues.  Finally it was recommended to me to use PowerShell.  I have been reading everything I can about PowerShell since I heard of it a couple of days ago. 

Here's what I am trying to do:

- I want to have a script that will "watch" the event log for specified ID's (about 60(!))
- When one of these events occurs, I would like to send an email with the info
- I would like this to run continuously, although it can have up to a 15-30 minute pause

I found something similar here: http://www.jdhitsolutions.com/resources/scripts/Report-Events.txt - I had it working, but only for one event, and sometimes not at all.

I know there is probably a one line solution that will do what I need, but I am having problems figuring it out since I am so new at this.

If anyone can help me out, I would appreciate it!

Thanks,
Michelle

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>