search-maillbox exact search criteria
Posted on 2013-06-10
I have a basic script that searches all mailboxes on our exchange server. How can I limit the search criteria to an exact match?
Search-Mailbox -SearchQuery 'Subject: "TEST"', 'Body: "Test"' -targetmailbox "jbuzzetta" -targetfolder "inbox" -logonly -loglevel full
Results for test, testify, retest will all show up.
I'd like to see only TEST.