Solved

Dynamic Distribution Group/List Exchange 2010

Posted on 2010-11-23
4
723 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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