Solved

Exchange Powershell - Create-DynamicDistribution Group sanity check

Posted on 2013-06-26
5
496 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
A brief introduction to what I consider to be the best editor for PowerShell.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

776 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