Howdy,
I am attempting to search multiple mailboxes for "keywords" using the syntax below:
get-content C:\LIST.TXT | % {Search-Mailbox -identity $_ -SearchQuery '"First term" OR "Second Term"' -TargetMailbox XXXXX -TargetFolder "Results" -SearchDumpster -LogLevel Full}
While this works great it has one drawback. The results need to be "dumped" into a mailbox. Ideally this would be better served being dumped into a PST file. I have been unsuccessfull in using -failepath instead of -Targetmailbox, as it was not in the list I didn't thinki it would work. It didn't.
Any suggestions how I could get My retrievals to a PST instead of My own(or another) mailbox?