?
Solved

Exchange 2007 Dynamic Distribution Groups

Posted on 2011-09-07
11
Medium Priority
?
312 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
  • 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses

809 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