crp0499
asked on
Powershell help in Exchange 2013
I need to create a Dynamic Distribution Lists of people in several OUs. I see in the GUI that I can only specific one OU and I need to make sure the DDL contains users in several OUs and I think PS can do it.
Can someone assist me with the syntax please?
I need a DDL consisting of users in multiple OUs in AD.
Thanks
Cliff
Can someone assist me with the syntax please?
I need a DDL consisting of users in multiple OUs in AD.
Thanks
Cliff
ASKER
I need a Dynamic Dist List for email. I was also hoping for some sample code like new-distributiongroup "nationwide" -recipientcontainer thisOU AND thisOU AND thisOU....
something like that. The GUI only lets you pick one OU. I need to pick several.
something like that. The GUI only lets you pick one OU. I need to pick several.
ASKER
This is what I'm using and it's not working:
New-DynamicDistributionGro up -Name "NationWide" -Alias "NationWide" -RecipientFilter{(((recipi enttype -eq 'usermailbox') -and ((RecipientContainer -eq 'domain.local/people/worki ng') )) )}
New-DynamicDistributionGro
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also this will show you how to convert DDL's to DDG's