daknetworks.com

You are here: Blog Exchange Distribution Group Members

Exchange Distribution Group Members

Here's how to blank out all members in a distribution group:

Update-DistributionGroupMember foo.group -Members $null

Here's how to update the members in a distribution group:

Update-DistributionGroupMember foo.group -Members foo.user1, foo.user2, foo.user3

If you need to add a member to the group:

add-DistributionGroupMember foo.group -member foo.user

If you need to remove a member from the group:

removeDistributionGroupMember foo.group -member foo.user

If you need to adjust the list, do so in Excel, Word, Notepad, etc.

Here's how to add a Dynamic Distribution Group that contains all emails of a certain Organizational Unit (OU) in Active Directory (AD):

New-DynamicDistributionGroup -Name "foo.group.dynamic" -OrganizationalUnit "Foo OU" -RecipientFilter {((RecipientTypeDetails -eq 'UserMailbox'))}

There's probably a better way to do this.

Here's how to see the members of a Dynamic Distribution Group:

$foovariable = Get-DynamicDistributionGroup foo.dynamic.group
Get-Recipient -RecipientPreviewFilter $foovariable.RecipientFilter -OrganizationalUnit $foovariable.RecipientContainer

Contact Dak Networks

We are not taking on new clients at this time.