Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Dynamic Distrobution List - Target an OU

$
0
0

Hi Guys,

I am trying to create dynamic distribution list that does the following.

-Targets an OU

-searches for staff with a title

searching is fine but I cant seem to target the OU and still get results from other OU's when I preview the distribution list. 

New-DynamicDistributionGroup -Name "Anthony test targeted" -OrganizationalUnit "OU=users,OU=staff,DC=microsoft,DC=local" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Title -like 'operations manager*' -or Title -like 'area operations Manager*') }

any help would be great cheers!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>