Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

New to powershell scripting

$
0
0
I'm trying to write a powershell script to search for an "error message" in a directory that contains a list of txt files.  Since I want the script to run daily, it should only look at the files that were created within the last 24 hrs. If it finds the "error message" then either email me the results or write the errors to a file and email me the file.  This should be easy but I am new to powershell.  Any help would be greatly appreciated. 

Viewing all articles
Browse latest Browse all 21975

Trending Articles



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