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.