Managing distribution group members
This following example adds Holly Holt to a distribution group called Helpdesk_Users
:
Add-DistributionGroupMember -Identity "Helpdesk_Users" -Member "hollyh@contoso.com"
If you need to display the list of users who are the members of marketing users group, type the following:
Get-DistributionGroupMember -Identity "Marketing"
Now, let's remove John Doe from the Marketing group:
Remove-DistributionGroupMember -Identity "Marketing" -Member "John Doe"