• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 74
  • Last Modified:

Export all e-mails from specific domain on Exchange 2010 server

Hello,
I need to export all messages on my Exchange 2010 server that are to or from a certain domain.  Anything sent to or received from abcdomain.com for example.   In years past Exmerge was the ticket for this but everything is PowerShell now.  Can someone help me figure out how to accomplish this with powershell?  I understand this will only find messages still existing and nothing that has been deleted which is fine.  I just need to find anything we have sitting on the server to or from this address.  

Thank you.
0
bguilliams100
Asked:
bguilliams100
  • 2
3 Solutions
 
AmitIT ArchitectCommented:
You can use search mailbox ps command. Check this KB
https://technet.microsoft.com/en-us/library/dd298173(v=exchg.150).aspx
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
Use the following script below to accomplish this...
Get-Mailbox -ResultSize "unlimited" | 
Search-Mailbox -SearchQuery 'Sender:"*@abcdomain.com" and Recipient:"*abcdomain.com"' -TargetMailbox "Administrator" -TargetFolder "TestSearch" -Loglevel Full

Open in new window


Will.
0
 
bguilliams100Author Commented:
I ended up using the tools in the Exchange Management console to perform the searches.  I will have to adopt PowerShell sooner or later I know.
0
 
bguilliams100Author Commented:
I didn't use the suggested solutions which were all via PowerShell.  I used the Tools in the Exchange Management console.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now