Extract E-Mails from Mailboxes

create share 676 Reputation points
2021-03-07T22:15:18.357+00:00

Hi,

I need to extract e-mails for two Exchange on-premise users for the last 6 months which they sent to each other. What is the proper way to do it? Is there any exchange management shell command for this?

Thanks.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,819 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,296 Reputation points
    2021-03-08T03:14:32.18+00:00

    @create share

    Here are two suggestions for you:

    You need to add your admin account in to "Discovery Management" permission group first:
    75150-qa-kyle-10-48-15.png

    Suggestion 1: Search-Mailbox command:

    You can use command below to check whether could find correct email first(Search in User1 mailbox to find emails that sent to user2):

    Search-Mailbox -Identity User1 -SearchQuery "sent>=06/01/2020 AND sent<=03/08/2021 -and recipients:******@domain.com" -EstimateResultOnly  
    

    75187-qa-kyle-10-50-04.png
    If this command running successfully, you could export the result into the mailbox that you want:

    Search-Mailbox -Identity User1 -SearchQuery "sent>=06/01/2020 AND sent<=03/08/2021 -and recipients:******@domain.com" -TargetFolder "result" -TargetMailbox "******@domain.com"  
    

    You will could find those emails in the "check" mailbox.

    Suggestion 2: Use in-place eDiscovery & hold in Exchange admin center:
    75196-qa-kyle-10-55-10.png
    After searching complete, you could download the result:
    75241-qa-kyle-11-13-44.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.