> ## Documentation Index
> Fetch the complete documentation index at: https://ps365.clidsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find-ExDistributionGroupMember

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

# Find-ExDistributionGroupMember

## SYNOPSIS

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

## SYNTAX

```powershell theme={null}
Find-ExDistributionGroupMember [[-FilterByDomain] <string>]
 [[-FilterByEmailAddresses] <string[]>] [[-FilterRecipientTypeDetails] <string>]
 [-FilterByExternalDomains]
```

## 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

```powershell theme={null}
Find-ExDistributionGroupMember -FilterByDomain "contoso.com"
```

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

### EXAMPLE 2

```powershell theme={null}
Find-ExDistributionGroupMember -FilterByEmailAddresses "user@contoso.com"
```

Searches all distribution groups for members with the email address "[user@contoso.com](mailto:user@contoso.com)" and exports the results to a CSV file.

### EXAMPLE 3

```powershell theme={null}
Find-ExDistributionGroupMember -FilterByExternalDomains -FilterRecipientTypeDetails "MailContact"
```

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.

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -FilterByEmailAddresses

Provide specific email addresses to filter distribution group members.

```yaml theme={null}
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -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).

```yaml theme={null}
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -FilterRecipientTypeDetails

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

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
[about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

## NOTES

## RELATED LINKS

* [https://ps365.clidsys.com/docs/commands/Find-ExDistributionGroupMember](https://ps365.clidsys.com/docs/commands/Find-ExDistributionGroupMember.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.