Share via

Distribution List Query

VDH 0 Reputation points
2023-05-04T14:12:38.6066667+00:00

How do I query for a list of distribution lists in Exchange that have "allow external senders to email this group" set to "allow? (as shown in image)?

User's image

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.


1 answer

Sort by: Most helpful
  1. Vasil Michev 127K Reputation points MVP Volunteer Moderator
    2023-05-04T16:22:30.27+00:00

    Unfortunately, there is no server-side filter on that property, but you can do the following client-side:

    Get-DistributionGroup -ResultSize Unlimited | ? {$_.RequireSenderAuthenticationEnabled -eq $false}

    And in case you want to cover Microsoft 365 Groups:

    Get-UnifiedGroup -ResultSize Unlimited | ? {$_.RequireSenderAuthenticationEnabled -eq $false}

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.