Managing Groups CMDlets

Managing Exchange Groups PowerShell CMDlets

Get Distribution Group

Get-DistributionGroup -identity ‘[email protected]’ | fl

Get Distribution Group Members and export to a text file

Get-DistributionGroupMember -Identity ‘[email protected]’ | ft name, primarysmtpaddress > c:\path\file.txt

Get Distribution Group information

Get-DistributionGroup -Identity ‘[email protected]’ | fl DisplayName, Alias, PrimarySmtpAddress, EmailAddresses, RecipientType, HiddenFromAddressListsEnabled, LastExchangeChangedTime, LegacyExchangeDN, WhenChanged, WhenCreated, WhenChangedUTC, WhenCreatedUTC, AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, AcceptMessagesOnlyFromSendersOrMembers, CustomAttribute*

Add Group member when the group is secured

Add-DistributionGroupMember -identity “Group1 -Member “User1 -BypassSecurityGroupManagerCheck

Get-Distribution Group Members

Get-DistributionGroupMember -identity “Group1

Use when troubleshooting Who has permissions to send to a group

Get-DistributionGroup -Identity ‘[email protected]’ | fl DisplayName,PrimarySmtpAddress, RecipientType, HiddenFromAddressListsEnabled, LastExchangeChangedTime, AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, AcceptMessagesOnlyFromSendersOrMembers, CustomAttribute*

Find out if External Senders are allowed to send to Distribution Group

Get-DistributionGroup -Identity ‘[email protected]’ | ft name,primarysmtpaddress,require* -AutoSize

Find which groups require Sender Authentication

Get-DistributionGroup | where {$_.RequireSenderAuthenticationEnabled -ne “true”} | sort-object -property Alias | Ft Alias,RequireSender

Leave a Reply

Your email address will not be published. Required fields are marked *