Forum Discussion
TaranjeetSM11
Aug 11, 2023Copper Contributor
Dynamic Distribution Group with no Disabled Accounts
Hi I'm trying to build a few Dynamic Distribution Lists in Exchange Online and want to only include Active Users (i.e., users that are marked "Active" in Azure AD). I've tried using the UserAccou...
charles_thecyberguy
Feb 14, 2025Copper Contributor
unfortunately this doesn't work either.
sdfbailey
Feb 23, 2026Copper Contributor
You don't need the $. This definitely works.
Set-DynamicDistributionGroup -Identity GROUPNAME -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (ExchangeUserAccountControl -ne 'AccountDisabled')"