I know this can be done because i have seen it on other sites. I would like to create a Powershell script that goes into Outlook and retrieves the subject line and time email came in from a folder I have called Alerts given a specified time range and that have the key word "PASS" or "FAIL" in the subject.
If you cant go into a folder I am with a filter sender email. For example sendEmail@Alert.com
OK let me list requirements again.
1. Go into outlook and retrieve emails from a certain folder called Alerts.(IF this is not possible to do folder, I am OK with a filter by email sender called sendEmail@Alert.com)
2. Return all subject lines that have a "Pass" and "Fail" in the Subject and email came in between datetime X and X+3hours
3. The output should have the Email Subject and the Email Arrival time