Distribution list question

Hi there,

Is the following possible?

We have a distribution list (say call DL1) containing all users in our organisation (about 1000 mailboxes)

And we have a distribution list (say call DL2) containing all users in one particular office (about 400)

I've sent an email to DL2 already.

Now I want to send an email to DL1, but excluding the people in DL2 as they already have the email and I don't want to confuse them.

These are Exchange lists, not Outlook ones.

Thanks


  • Edited by mij2014 Thursday, July 30, 2015 11:51 AM
July 30th, 2015 11:50am

You can use a Dynamic Distribution group to achieve this.

New-DynamicDistributionGroup -Name "DL3" -RecipientFilter {(MemberofGroup -eq "DistinguishedName of DL1") -and (MemberofGroup -ne "DistinguishedName of DL2")}

You just need to get the DistinguishedName of your 2 Distribution Groups by running Get-DistributionGroup.

To verify that the new Dynamic DL filter is correct you can run this in Powershell:

$a = Get-DynamicDistributionGroup "DL3"

Get-Recipient -RecipientPreviewFilter $a.RecipientFilter | select Name,PrimarySmtpAddress | Out-GridView -Wait

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 5:27pm

You're missing a quote after the last distribution list DN  it should be (MemberOfGroup -ne "cn=DL2,ou=distribution lists,dc=domain,dc=org")}

It should also be -OrganizationalUnit

  • Edited by Corey Riley Wednesday, August 05, 2015 6:40 PM
  • Marked as answer by mij2014 12 hours 26 minutes ago
August 5th, 2015 6:39pm

Thanks guys, the missing last quote was the problem. Silly mistake!
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2015 3:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics