ThinkPaper
asked on
Exchange Powershell - Create-DynamicDistribution Group sanity check
Experts - need a quick sanity check here. Trying to run this command and it works with all the filters EXCEPT it is pulling users outside the recipient container as well.. is there something I am completely missing??!
I assumed by specifying "-RecipientContainer" to a certain OU, it would only search within that OU, but when I click the "preview" button in EMC, it is pulling mailboxes OUTSIDE that OU. Basically I am trying to pull all mailboxes within a certain OU that does NOT have specific custom attributes set.
Thank you!
I assumed by specifying "-RecipientContainer" to a certain OU, it would only search within that OU, but when I click the "preview" button in EMC, it is pulling mailboxes OUTSIDE that OU. Basically I am trying to pull all mailboxes within a certain OU that does NOT have specific custom attributes set.
New-DynamicDistributionGroup -Name "_Test DistroUsers" -alias "_testdistrousers" -organizationalunit "boo.com/ALL Users/DeptA/Research" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and ((CustomAttribute1 -ne "ADMIN") -and (CustomAttribute1 -notlike "*_PUBLIC") -and (CustomAttribute1 -notlike "BLAH")))} -RecipientContainer "boo.com/ALL Users/DeptA/Research"
Thank you!
The command is ok.. What do you see in EMC? is it showing the correct RecipientContainer for the new DDG?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Akhater - sounds exactly like my issue. Just to verify - so even though EMC is showing results outside the OU, the results are correct, right? So I don't have to worry that if I send to the distro, it will send to users outsdie the OU?
Just want to make sure since the actual dynamic distro I am playing with includes probably 50% of our user base, and I don't want to make a mistake.
Thanks!
Just want to make sure since the actual dynamic distro I am playing with includes probably 50% of our user base, and I don't want to make a mistake.
Thanks!
If it is the same behavior I describe in my blog then you can be sure that the email will reach only the correct people
It is easy to make sure using a test group. Although I tested it and I am confident it won't cause you any issue
It is easy to make sure using a test group. Although I tested it and I am confident it won't cause you any issue
ASKER
Gotcha, Thanks! I wish Microsoft would fix this though... @__@