Skip to main content

SYNOPSIS

Find members of distribution groups based on email address or domain.

SYNTAX

DESCRIPTION

This function retrieves members of all distribution groups in Exchange Online that match specified criteria such as email addresses or domains.

EXAMPLES

EXAMPLE 1

Searches all distribution groups for members with email addresses containing “contoso.com” and exports the results to a CSV file.

EXAMPLE 2

Searches all distribution groups for members with the email address “user@contoso.com” and exports the results to a CSV file.

EXAMPLE 3

Searches all distribution groups for members whose email addresses belong to external domains and are of the type “MailContact”, then exports the results to a CSV file.

PARAMETERS

-FilterByDomain

Specify a domain to filter distribution group members by their email addresses.

-FilterByEmailAddresses

Provide specific email addresses to filter distribution group members.

-FilterByExternalDomains

If set to true, filters members whose email addresses belong to external domains not managed in the Exchange Online environment (based on accepted domains).

-FilterRecipientTypeDetails

Specify a recipient type detail to further filter the members (e.g., MailContact, MailUser).

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

https://ps365.clidsys.com/docs/commands/Find-DistributionGroupMember