Script for top external senders in Exchange online in last 6 months

Sujith ks 1 Reputation point
2022-03-30T19:45:28.353+00:00

Any scripts available to get top external senders in Exchange online in last 6 months?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,314 questions
{count} votes

2 answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,226 Reputation points
    2022-03-31T05:53:59.477+00:00

    @Sujith ks

    Do you mean that you want to know the top external senders who send emails to your Exchange online mailbox? If so, you could use the command below to check it:

    Get-MessageTrace -StartDate 3/21/2022  -EndDate 3/31/2022 -Status Delivered | where {$_.SenderAddress -notlike "*@domain.onmicrosoft.com"} | Group SenderAddress | select Count,Name | Sort-Object Count -Descending  
    

    Please note: The Message Trace can only find logs within 10 days.


    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 comments No comments