Exchange 2010 Powershell Cmdlet Help

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.

February 13th, 2015 9:05pm

In Exchange 2013 use:

https://technet.microsoft.com/en-us/library/dd298064(v=exchg.150).aspx

Example:

New-MailboxSearch -Name "Legal-ProjectX" -SourceMailboxes DG-Marketing,DG-Executives -TargetMailbox LegalDiscovery@contoso.com -StartDate "01/01/2011" -EndDate "12/31/2011" -senders "@contoso.com" 

Free Windows Admin Tool Kit Click here and download it now
February 13th, 2015 9:26pm

Hi,

I have a test in my environment using Exchange 2010, you can use the following cmdlet to search and copy the messages that came from a particular domain to administrator's mailbox.

Get-Mailbox | New-MailboxSearch -Name "test" -TargetMailbox administrator@contoso.com -Recipients "@contoso.com"

Note: In Exchange 2010, you can't add "*" before "@".

Hope this can be helpful to you.

Best regards,

February 16th, 2015 3:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics