Solved

Exchange Powershell - Create-DynamicDistribution Group sanity check

Posted on 2013-06-26
5
515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 Message Tracking 3 38
Export email data from Google to PST files 8 72
Add Log to powershell Script 14 30
Office 365 adding a domain 3 35
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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