|
| 1 | +--- |
| 2 | +external help file: Microsoft.Exchange.CalendarsAndGroups-Help.xml |
| 3 | +online version: https://docs.microsoft.com/powershell/module/exchange/get-dynamicdistributiongroupmember |
| 4 | +applicable: Exchange Online |
| 5 | +title: Get-DynamicDistributionGroupMember |
| 6 | +schema: 2.0.0 |
| 7 | +author: chrisda |
| 8 | +ms.author: chrisda |
| 9 | +ms.reviewer: |
| 10 | +--- |
| 11 | + |
| 12 | +# Get-DynamicDistributionGroupMember |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +This cmdlet is available only in the cloud-based service. |
| 16 | + |
| 17 | +Use the Get-DistributionGroupMember cmdlet to view the members of distribution groups and mail-enabled security groups. |
| 18 | + |
| 19 | +For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). |
| 20 | + |
| 21 | +## SYNTAX |
| 22 | + |
| 23 | +``` |
| 24 | +Get-DynamicDistributionGroupMember [-Identity] <DynamicDistributionGroupMemberIdParameter> |
| 25 | + [-Credential <PSCredential>] |
| 26 | + [-IncludeSoftDeletedObjects] |
| 27 | + [-ResultSize <Unlimited>] |
| 28 | + [<CommonParameters>] |
| 29 | +``` |
| 30 | + |
| 31 | +## DESCRIPTION |
| 32 | +You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see [Find the permissions required to run any Exchange cmdlet](https://docs.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions). |
| 33 | + |
| 34 | +## EXAMPLES |
| 35 | + |
| 36 | +### Example 1 |
| 37 | +```powershell |
| 38 | +Get-DynamicDistributionGroupMember -Identity "Temporary Employees" |
| 39 | +``` |
| 40 | + |
| 41 | +This example returns the existing members for the dynamic distribution group named Temporary Employees. |
| 42 | + |
| 43 | +## PARAMETERS |
| 44 | + |
| 45 | +### -Identity |
| 46 | +The Identity parameter specifies the dynamic distribution group. You can use any value that uniquely identifies the group. For example: |
| 47 | + |
| 48 | +- Name |
| 49 | +- Alias |
| 50 | +- Distinguished name (DN) |
| 51 | +- Canonical DN |
| 52 | +- Email address |
| 53 | +- GUID |
| 54 | + |
| 55 | +```yaml |
| 56 | +Type: DynamicDistributionGroupMemberIdParameter |
| 57 | +Parameter Sets: (All) |
| 58 | +Aliases: |
| 59 | +Applicable: Exchange Online |
| 60 | + |
| 61 | +Required: True |
| 62 | +Position: 0 |
| 63 | +Default value: None |
| 64 | +Accept pipeline input: True (ByValue) |
| 65 | +Accept wildcard characters: False |
| 66 | +``` |
| 67 | +
|
| 68 | +### -Credential |
| 69 | +The Credential parameter specifies the username and password that's used to run this command. Typically, you use this parameter in scripts or when you need to provide different credentials that have the required permissions. |
| 70 | +
|
| 71 | +A value for this parameter requires the Get-Credential cmdlet. To pause this command and receive a prompt for credentials, use the value `(Get-Credential)`. Or, before you run this command, store the credentials in a variable (for example, `$cred = Get-Credential`) and then use the variable name (`$cred`) for this parameter. For more information, see [Get-Credential](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/get-credential). |
| 72 | + |
| 73 | +```yaml |
| 74 | +Type: PSCredential |
| 75 | +Parameter Sets: (All) |
| 76 | +Aliases: |
| 77 | +Applicable: Exchange Online |
| 78 | +
|
| 79 | +Required: False |
| 80 | +Position: Named |
| 81 | +Default value: None |
| 82 | +Accept pipeline input: False |
| 83 | +Accept wildcard characters: False |
| 84 | +``` |
| 85 | + |
| 86 | +### -IncludeSoftDeletedObjects |
| 87 | +The IncludeSoftDeletedGroups switch specifies whether to include soft-deleted group members in the results. You don't need to specify a value with this switch. |
| 88 | + |
| 89 | +Soft-deleted group members are deleted Microsoft 365 Groups or mailboxes that are still recoverable. |
| 90 | + |
| 91 | +```yaml |
| 92 | +Type: SwitchParameter |
| 93 | +Parameter Sets: (All) |
| 94 | +Aliases: |
| 95 | +Applicable: Exchange Online |
| 96 | +
|
| 97 | +Required: False |
| 98 | +Position: Named |
| 99 | +Default value: None |
| 100 | +Accept pipeline input: False |
| 101 | +Accept wildcard characters: False |
| 102 | +``` |
| 103 | + |
| 104 | +### -ResultSize |
| 105 | +The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000. |
| 106 | + |
| 107 | +```yaml |
| 108 | +Type: Unlimited |
| 109 | +Parameter Sets: (All) |
| 110 | +Aliases: |
| 111 | +Applicable: Exchange Online |
| 112 | +
|
| 113 | +Required: False |
| 114 | +Position: Named |
| 115 | +Default value: None |
| 116 | +Accept pipeline input: False |
| 117 | +Accept wildcard characters: False |
| 118 | +``` |
| 119 | + |
| 120 | +### CommonParameters |
| 121 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 122 | + |
| 123 | +## INPUTS |
| 124 | + |
| 125 | +### |
| 126 | + |
| 127 | +## OUTPUTS |
| 128 | + |
| 129 | +### |
| 130 | + |
| 131 | +## NOTES |
| 132 | + |
| 133 | +## RELATED LINKS |
0 commit comments