Quarantine emails

Microsoft Q & A 381 Reputation points
2023-06-05T18:36:47.6733333+00:00

How to get the list of recipients along with the number of quarantine emails received by them in last 30 days.

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,631 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dezhi Li-MSFT 790 Reputation points
    2023-06-06T02:53:46.5966667+00:00

    Hi @Microsoft Q & A

    You can try to run the following command, it will list all recipients and quarantined emails from last 30 days.

    Get-QuarantineMessage -StartReceivedDate (Get-Date).AddDays(-30) | Group-Object -Property RecipientAddress | Select-Object Name,Count | Export-Csv -Path .\quarantined.csv
    

    For more details please check the link below.

    https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/quarantine-admin-manage-messages-files?view=o365-worldwide

    https://learn.microsoft.com/en-us/powershell/module/exchange/get-quarantinemessage?view=exchange-ps

    Best Regards,

    Dezhi


    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](https://aka.ms/msftqanotifications)"https://aka.ms/msftqanotifications)") 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.