Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange 2007 Dynamic Distribution Groups

Posted on 2011-09-07
11
Medium Priority
?
310 Views
Last Modified: 2012-05-12
How do I create an Exchange 2007 Dynamic Distribution Group that filters only users that are listed under the Country/region = New Zealand
 
I would like to filter all users AND other OU's that fall under the following OU location only:
 
domain.com/Business Support
 
Thank you
0
Comment
Question by:the_omnific
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 1

Author Comment

by:the_omnific
ID: 36500657
Or perhaps even better: filter only other Dynamic Distribution Groups that have the letters NZ in the name.

Under: domain.com/Business Support - only
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36501433
New-DynamicDistributionGroup -Name "name" -OrganizationalUnit "domain.com/Business Support" -RecipientFilter {(RecipientType -eq 'DynamicDistributionGroup' -and DisplayName -like '*nz*')}
0
 
LVL 1

Author Comment

by:the_omnific
ID: 36506787
Thank you. But the following is listing all DynamicDistributionGroups with NZ in the name. I just want to filter DynamicDistributionGroups that come under domain.com/Business Support and any additional OU's in Business Support.
   
Any ideas?
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
LVL 49

Expert Comment

by:Akhater
ID: 36506824
Dont trust the preview, it is a bug. Try it it works only for groups in the specified OU
0
 
LVL 1

Author Comment

by:the_omnific
ID: 36506905
Haha. Stupid Microsoft. I suppose it does actually say 'Select the recipient container where you want to apply this filter'
 
How do I amend it to filter: NZ, WA, NSW
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36506963
You mean nz or wa or nsw ?
0
 
LVL 1

Author Comment

by:the_omnific
ID: 36506985
Sorry I mean: nz + wa + nsw
 
Thank you!
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36507005
Sorry I still dont get it, you mean groups with names includes nz or wa or nsw?
0
 
LVL 1

Author Comment

by:the_omnific
ID: 36507043
Yes sorry!
0
 
LVL 49

Accepted Solution

by:
Akhater earned 2000 total points
ID: 36507054
New-DynamicDistributionGroup -Name "name" -OrganizationalUnit "domain.com/Business Support" -RecipientFilter {(RecipientType -eq 'DynamicDistributionGroup' -and (DisplayName -like '*nz*' -or DisplayName -like '*wa*' -or DisplayName -like '*nsw*'))}


From the top of my head try it
0
 
LVL 1

Author Comment

by:the_omnific
ID: 36507183
You are a genius.
 
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question