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!