Hi @Rising Flight
Thanks for reaching out. You’re absolutely right that checking for conflicts is an important step before creating a new Distribution Group.
According to Microsoft's documentation, running a lookup across all recipient types is the most reliable method. This ensures that the Name, Alias, Display Name, or SMTP Address you plan to use isn’t already assigned to any of the following:
- User mailboxes
- Shared/Resource mailboxes
- Distribution Groups
- Microsoft 365 (Unified) Groups
Here are some sample commands you can run:
# Check by identity
Get-Recipient -Identity "DLEXO1"
# Check by email address (both domains)
Get-Recipient -Filter "EmailAddresses -like '*******@mydomain.com*' -or EmailAddresses -like '*******@mydomain.onmicrosoft.com*'"
This will check if the alias, display name, or email address (under both mydomain.com and mydomain.onmicrosoft.com) already exists.
- If the command returns nothing, it means no conflicts were found, and you can safely proceed with your
New-DistributionGroup
command. - If results are returned, another object is already using that value, and you’ll need to choose a different name or address.
For further reference, here are the official docs:
I hope this helps you move forward with confidence. Please let me know if you have any other questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.