I am trying to export all messages in Exchange that came from a particular domain i.e. (anyuser@domain.com)
The problem is that I cannot figure out the correct syntax in Powershell to accomplish this. My syntax right now is:
Get-mailbox -ResultSize "unlimited" | Export-Mailbox -RecipientKeywords "*@domain.com" -PSTFolderPath c:\Export.pst
Any help on figuring this out would be great.