Find messages from a distribution group

Андрей Михалевский 2,581 Reputation points

How can I find messages from a distribution group and find out messages that have attachments?

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,335 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,641 Reputation points

    Hi @Андрей Михалевский

    What's your Exchange server version? Do you want to use powershell to search for messages with attachment sent from a distribution group?

    Generally we could use search-mailbox command to search mailbox and copy the results to a specified target mailbox.

    -SearchQuery "from:XXX"

    However, for the attachment, I'm afraid you can only search for a specific atttachment, but cannot filter mails with attachments.


    In Exchange online, has an filter HasAttachment in New-ComplianceSearch


    Below is a related thread discussed about the similar issue: use Search-Mailbox to find messages with attachments

    If an Answer 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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Андрей Михалевский 2,581 Reputation points

    I have New-ComplianceSearch.

    Exchange 2019. HasAttachment works great. Thank you !

    0 comments No comments