Solved

Exchange Powershell - Create-DynamicDistribution Group sanity check

Posted on 2013-06-26
5
506 Views
Last Modified: 2013-06-27
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.

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" 

Open in new window


Thank you!
0
Comment
Question by:ThinkPaper
  • 2
  • 2
5 Comments
 
LVL 40

Expert Comment

by:Subsun
ID: 39279295
The command is ok.. What do you see in EMC? is it showing the correct RecipientContainer for the new DDG?
0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 39280581
0
 
LVL 16

Author Comment

by:ThinkPaper
ID: 39281164
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!
0
 
LVL 49

Expert Comment

by:Akhater
ID: 39281215
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
0
 
LVL 16

Author Closing Comment

by:ThinkPaper
ID: 39281454
Gotcha, Thanks! I wish Microsoft would fix this though... @__@
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question