Category: O365

cmdlet: Remove-DistributionGroupMember

Q: Is there a way to remove a user from a distribution group? A: Yes, there is the built in Remove-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Remove-DistributionGroupMember -Identity¬†GroupName -Member UserName  

cmdlet: Add-DistributionGroupMember

Q: Is there a way to add users to a distribution group? A: Yes, there is the built in Add-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Add-DistributionGroupMember -Identity¬†GroupName -Member UserName  

cmdlet: Get-DistributionGroupMember

Q: Is there a way to list or get members in a distribution group? A: Yes, there is the built in Get-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Get-DistributionGroupMember -Identity¬†GroupName -Member UserName