Filter a dynamic distribution list using user name initial letter

Hi all,

I have an exchange 2010 enviroment; I need to know if it is possible change an existin dynamic distribution list ( or create a new one) using the  Set-DynamicDistributionGroup cmdlet to create a dynamic distribution based on the first three characters of the username.

thank you ver

January 16th, 2015 12:18am

Hi Luca,

You can use below cmdlet to create a DDG with first three character of user name.

New-DynamicDistributionGroup -Name "TestDDG" -Alias "TestDDG" -OrganizationalUnit "amittank.com/EX2010-Users" -RecipientFilter {SamAccountName -like 'tan*'} -RecipientContainer "amittank.com"

You can use this to see the preview of the DDG members....

$FTE = Get-DynamicDistributionGroup "TestDDG"
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter

Free Windows Admin Tool Kit Click here and download it now
January 16th, 2015 4:50am

Thank you so much Amit  it works great
January 16th, 2015 4:51pm

My pleasure Luca!
Free Windows Admin Tool Kit Click here and download it now
January 16th, 2015 5:10pm

Hi Luca,

In addition to Amit's suggestion, you can create a dynamic distribution group using EMC in Exchange 2010.

Open EMC -> Recipient Configuration -> In the action pane, click New Dynamic Distribution Group.

For more information, here is an article for your reference.

Create a Dynamic Distribution Group

https://technet.microsoft.com/en-us/library/bb123722(v=exchg.141).aspx

Hope this can be helpful to you.

Best regards,

If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

January 31st, 2015 4:28am

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

Other recent topics Other recent topics