Solved

Exchange Powershell - Create-DynamicDistribution Group sanity check

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now