I have a script that displays the name of a shared mailbox and gives the count of emails at the time of the script. It runs well, but I am unable to filter out the messages that were forwarded or replied to. Here is the meat of the script:
Can someone help me keep what I have but add some kind of filter so it does not count the messages that have FW: or RE: in the subject.
Thanks for your help Jason Hopp
by mjolinor at 2013-02-20 14:57:34
For that, you're going to have to script opening the mailbox and reading the message subjects.
The best way I know to do this with Powershell is via the Exchange EWS Managed API. Glen Scales has an excellent tutorial on using it to automate various admin tasks. It's not a trivial undertaking, but IMHO well worth the effort for the functionality it exposes once you get a handle on it.