How to extract all email addresses information from Exchange 2016

Jonathan Priyaraj 160 Reputation points
2024-03-19T19:19:45.1666667+00:00

i need to extract list of all email addresses(eg: ******@gmail.com) sent by the user in last 6 months along with the date from exchange 2016 . please send me the tips . if you are sending me query , please send query which is compatible with 2016 power shell

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,184 questions
Exchange | Exchange Server | Other
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Exchange | Exchange Server | Management
0 comments No comments
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 41,376 Reputation points Moderator
    2024-03-20T05:02:24.1333333+00:00

    Hi @Jonathan Priyaraj ,

    Do you mean you want to retrieve a list of recipients for a specific sender in your organization over the past 6 months? If so, please run the command below to check the current maximum age set for the message tracking log files in your organization. (By default, it's 30 days, see this link.)

    Get-TransportService | fl name, MessageTrackingLogMaxAge
    

    If it's set to longer than 180 days, you can then run the command below to get the recipients list for the specific sender:
    (Please replace "******@contoso.com" with the sender's email address on your side)

    Get-TransportService | Get-MessageTrackingLog -Sender ******@contoso.com -ResultSize Unlimited -Start (Get-Date).AddDays(-180) -End (Get-Date) |select -ExpandProperty Recipients | Sort-Object -Unique > C:\recipients.csv
    
    

    If the current current maximum age set for the message tracking log files is shorter than 180 days, you could only get the recipient list within that time span. In this case, in case you want to get a list over the past 6 months in the future, it's recommended to adjust the MessageTrackingLogMaxAge value using command below:

    Set-TransportService -Identity <ServerName> -MessageTrackingLogMaxAge 
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


0 additional answers

Sort by: Most helpful

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.