I need to get copies of all the email sent to or received from an specific recipient/sender outside of our organization. We have one Domain Controller (Windows Server 2k3) and Exchange Server 2k7.
When I run the following powershell command:
E:\>get-mailbox -"general mailbox database" | export-mailbox -subjectkeywords "email@example.com" -targetmailbox "myownmailbox" -targetfolder "exportfolder"
I get back:
Get-mailbox : The operation could not be performed because object 'general mailbox database' could not be found on domain controller XXXXX at line ..........
Could someone help me with this?