Need help with basic send-mailmessage with an if statement

Hey everyone, I asked earlier today for some basic PowerShell help on a slightly similar topic and got it immediately. Now I’m hoping you guys can help me again with something that (I think) is harder. Here’s my command:

Optimally, I’d like to have the words “Fail” AND “Flag” be in the portion of the -match part, so that an email will get sent if the words “Fail” or “Flag” are found in the documents folder. I feel as though that’ll be possible.

Thank you again!!! 😀

submitted by /u/ConsistentOutcome
[link] [comments]

Leave a Reply