Solved

Dynamic Distribution Group/List Exchange 2010

Posted on 2010-11-23
4
713 Views
Last Modified: 2012-05-10
Hi

I need to create several dynamic distribution lists in exchange 2010. The criteria would be "Company", "Office", "Description" (a combination of them as well).

Can anyone here help me with the correct syntax?

Thanks!
0
Comment
Question by:Caperuzzo
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
CCSDSK1 earned 500 total points
ID: 34199371
Here is the code i used.  I only needed Company and office but I believe the Description part should be the same.  The -not(UserAccountControl -eq 514 just makes sure the user isn't disabled.

 
New-DynamicDistributionGroup -Name "NAME OF YOUR LIST" -RecipientFilter {((RecipientType -eq 'UserMailbox' -and -not(UserAccountControl -eq 514) -and (Company -eq "COMPANY") -and (Office -eq "OFFICE") -and (Description -eq Description)))}

Open in new window

0
 
LVL 2

Expert Comment

by:CCSDSK1
ID: 34199391
Sorry, for got the "''s around the last Description
0
 

Author Comment

by:Caperuzzo
ID: 34200894
Muuuchas gracias!
0
 

Author Comment

by:Caperuzzo
ID: 34205297
One more thing I'd like to ask you.

How would the syntax be to select users where the Description is empty?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
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…

863 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

25 Experts available now in Live!

Get 1:1 Help Now