Listing the Individual Members of a Dynamic Distribution Group
Dynamic Distribution Groups in Exchange don’t have a fixed membership list the way a normal distribution group does — membership is calculated on the fly based on a filter, which makes it awkward to get a straightforward list of who’s actually in one at any given moment. The Exchange Management Shell is the way to resolve this.$group = Get-DynamicDistributionGroup -Identity "YourDynamicGroupName"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter | Select-Object DisplayName, PrimarySmtpAddress
This pulls the group’s own filter and re-runs it against your recipients, giving you the actual current membership along with each member’s primary email address. Because the membership is dynamic, running this again later (after people join or leave the organisation, or their attributes change) may return a different list — that’s expected behaviour, not a bug, since the whole point of a dynamic group is that it stays current automatically.
If you want to export the list rather than just view it on screen, pipe the output into Export-Csv at the end of the command.
Works Unchanged in Exchange Online (Updated for 2026)
This exact pattern also works in Exchange Online PowerShell, with no changes needed — Microsoft’s own reference documentsGet-DynamicDistributionGroup and Get-Recipient -RecipientPreviewFilter as supported for cloud mailboxes too. One thing worth flagging for large organisations: it’s tempting to reach for Get-EXORecipient instead, since it’s the newer, faster REST-backed cmdlet that many EXO scripts favour, but its own -RecipientPreviewFilter parameter is explicitly documented as reserved for internal Microsoft use rather than for this purpose — stick with the standard Get-Recipient cmdlet above for accurate dynamic-group membership results.
Resources
Gear We Recommend
A few general tech accessories worth having alongside this.
Browse our General Tech Accessories picks on AmazonAs an Amazon Associate, TechyGeeksHome earns from qualifying purchases.
Discover more from TechyGeeksHome
Subscribe to get the latest posts sent to your email.