• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

Dynamic DL Custom Filter by OU

Hi All,
I'm trying to create a Dynamic DL with a custom filter that sends to users from seven different OUs.  Basically it is just an All Employee DL, but I have my users separated by location.  I would go higher in the OU tree structure but then I end up with the contractor and test accounts included.  Here is what I have so far... my problem is that I don't know the syntax to include all the OUs.

New-DynamicDistributionGroup -Name 'All Employees' -OrganizationalUnit 'domain/Users' -RecipientFilter {RecipientType -eq 'UserMailbox'} -RecipientContainer 'domain/Corp/Location/WA2/Users'

Here are the OUs I need to include...
'domain/Corp/Location/WA2/Users'
'domain/Corp/Location/WA3/Users'
'domain/Corp/Location/WA4/Users'
'domain/Corp/Location/CA1/Users'
'domain/Corp/Location/OR1/Users'
'domain/Corp/Location/MD1/Users'
'domain/Corp/Location/UK1/Users'
0
Ascentium
Asked:
Ascentium
  • 4
  • 2
1 Solution
 
atheluCommented:
You cannot use an OU as a filter for a DL, as it is not a property that is stamped upon the object. You can set the scope of the DL to a folder, and then only include those objects. You could create multiple DLs and aggregate them into one final DL.
0
 
atheluCommented:
What I tend to do is use the extensionAttributes that are available (list as custom attributes) and use these do identify the various companies or units, and then filter on these.
0
 
AmitTankCommented:
Create DDG in all OUs (by default the scop of recipient is the location OU where DDG is created) and create a main DL of all these DDG ;)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
AscentiumAuthor Commented:
Is adding DDGs to a "main" DL supported?  There is not a Member Of option in the console.  Seems like they would have added that.  I can add the DDG as a member of another group.  Just want to make sure I'm not missing something.  
0
 
atheluCommented:
Yes, you can have a DL with a DDG as a member.
0
 
AscentiumAuthor Commented:
Shouldn't I be able to specify which users the DDL can choose from by -RecipientContainer?  Can you specify more than one container?
0
 
atheluCommented:
The Recipient container is part of the scope of the filter. Only one may be used.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now