Hello PowerShell Experts,
I'm looking to implement a log file monitor on a Server 2008 R2 system that watches for out of memory conditions. Searching a log file for a string of text is no problem. Got that down fine. The problem is the log file may contain old occurances of the problemattic text before it is rolled off. And the process will be run on a schedule. So, is there a way to make PowerShell remember the line it last read in a given file and start reading the subsequent lines? Hope that makes sense.
Thanks in advance for the suggestions.