Get-DistributionGroupMember
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
Use the Get-DistributionGroupMember cmdlet to find existing distribution group members.
Syntax
Get-DistributionGroupMember -Identity <DistributionGroupMemberIdParameter> [-Credential <PSCredential>] [-DomainController <Fqdn>] [-ReadFromDomainController <SwitchParameter>] [-ResultSize <Unlimited>]
Detailed Description
You can use the Get-DistributionGroupMember cmdlet to locate existing distribution group members in the Active Directory directory service.
To run the Get-DistributionGroupMember cmdlet, the account you use must be delegated one of the following:
- Exchange View-Only Administrator role
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.DistributionGroupMemberIdParameter |
The Identity parameter of the distribution group takes one of the following forms:
|
Credential |
Optional |
System.Management.Automation.PSCredential |
The Credential parameter indicates the domain and user name of the account used to read Active Directory. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory, include the DomainController parameter in the command. |
ReadFromDomainController |
Optional |
System.Management.Automation.SwitchParameter |
The ReadFromDomainController parameter specifies that the user information is read from a domain controller in the user's domain. If you set the recipient scope to include all recipients in the forest, and if you do not use this parameter, it is possible that the user information is read from a global catalog with outdated information. If you use this parameter, multiple reads might be necessary to get the information. Note By default, the recipient scope is set to the domain that hosts your Exchange servers. |
ResultSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
The ResultSize parameter indicates the maximum number of members that will be returned. |
Input Types
Return Types
Errors
Error | Description |
---|---|
|
|
Exceptions
Exceptions | Description |
---|---|
|
|
Example
The following is an example of the Get-DistributionGroupMember command.
Get-DistributionGroupMember -Identity "Distribution Group2"