Dear experts
I am trying to create a a dynamic distribution group in our on-prem Exchange 2016. I want all users in a perticular OU but what I get is users in that OU and other OU:s aswell. It does seem to ignore the RecipientContainer option. See below for PS output:
Get-DynamicDistributionGroup -Identity justemployees | fl
RunspaceId : a0067603-55f1-673c-2341-18cfabdddddc
RecipientContainer : our.domain/OurOrg/Users/JustEmployees
RecipientFilter : ((RecipientType -eq 'UserMailbox') -and (-not(Name -like 'SystemMailbox{')) -
and (-not(Name -like 'CAS_{')) -and (-not(RecipientTypeDetailsValue -eq 'Mail
boxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(Recipie
ntTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsV
alue -eq 'AuditLogMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuxAudi
tLogMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'SupervisoryReviewPoli
cyMailbox')))
LdapRecipientFilter : (&(!(!(objectClass=user)))(objectCategory=person)(mailNickname=)(msExchHomeSe
rverName=)(!(name=SystemMailbox{))(!(name=CAS_{))(!(msExchRecipientTypeDeta
ils=16777216))(!(msExchRecipientTypeDetails=536870912))(!(msExchRecipientTypeD
etails=68719476736))(!(msExchRecipientTypeDetails=8388608))(!(msExchRecipientT
ypeDetails=4398046511104))(!(msExchRecipientTypeDetails=70368744177664))(!(msE
xchRecipientTypeDetails=140737488355328)))
IncludedRecipients : MailboxUsers
I created it in the GUI where I specified the OU in the membership section which was pretty straight forward but as said, it is not limiting to that OU.
What am I doing wrong?
Thanks for any help and comments.
Mrtro