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.
↧