CmdID / PowerShell / Cmdlets / Get
Get-DistributionGroup
Use the Get-DistributionGroup cmdlet to view existing distribution groups or mail-enabled security groups. Exchange PowerShell reference
From the Exchange PowerShell reference 19 parameters Its page in the reference
Parameters
Show its 19 parameters
-IdentityThe Identity parameter specifies the distribution group or mail-enabled security group that you want to view.-AnrThe Anr parameter specifies a string on which to perform an ambiguous name resolution (ANR) search.-CredentialThe Credential parameter specifies the username and password that's used to run this command.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-FilterThe Filter parameter uses OPATH syntax to filter the results by the specified properties and values.-IgnoreDefaultScopeThe IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope.-IncludeAcceptMessagesOnlyFromDLMembersWithDisplayNamesThe IncludeAcceptMessagesOnlyFromDLMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of AcceptMessagesOnlyFromDLMembers recipients in the AcceptMessagesO…-IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNamesThe IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of AcceptMessagesOnlyFromSendersOrMembers recipients in the A…-IncludeAcceptMessagesOnlyFromWithDisplayNamesThe IncludeAcceptMessagesOnlyFromWithDisplayNames switch specifies whether to return the SMTP addresses and display names of AcceptMessagesOnlyFrom recipients in the AcceptMessagesOnlyFromWithDisplay…-IncludeBypassModerationFromSendersOrMembersWithDisplayNamesThe IncludeBypassModerationFromSendersOrMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of BypassModerationFromSendersOrMembers recipients in the Bypas…-IncludeGrantSendOnBehalfToWithDisplayNamesThe IncludeGrantSendOnBehalfToWithDisplayNames switch specifies whether to return the SMTP addresses and display names of GrantSendOnBehalfTo recipients in the GrantSendOnBehalfToWithDisplayNames pro…-IncludeManagedByWithDisplayNamesThe IncludeManagedByWithDisplayNames switch specifies whether to return the SMTP addresses and display names of group owners in the ManagedByWithDisplayNames property.-IncludeModeratedByWithDisplayNamesThe IncludeModeratedByWithDisplayNames switch specifies whether to return the SMTP addresses and display names of ModeratedBy recipients in the ModeratedByWithDisplayNames property.-ManagedByThe ManagedBy parameter filters the results by the owner of the group.-OrganizationalUnitThe OrganizationalUnit parameter filters the results based on the object's location in Active Directory.-ReadFromDomainControllerThe ReadFromDomainController switch specifies that information should be read from a domain controller in the user's domain.-RecipientTypeDetailsThe RecipientTypeDetails parameter filters the results by the specified distribution group subtype.-ResultSizeThe ResultSize parameter specifies the maximum number of results to return.-SortByThe SortBy parameter specifies the property to sort the results by.