Find messages from a distribution group

Андрей Михалевский 2,641 Reputation points
2021-04-29T10:39:54.38+00:00

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

Accepted answer
  1. Joyce Shen - MSFT 16,646 Reputation points
    2021-04-30T03:00:20.553+00:00

    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.

    92812-qa-2021-04-30-10-50-08.png

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

    92767-qa-2021-04-30-10-55-21.png

    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,641 Reputation points
    2021-04-30T06:10:54.707+00:00

    I have New-ComplianceSearch.

    Exchange 2019. HasAttachment works great. Thank you !

    0 comments No comments