• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 771
  • Last Modified:

Dynamic Distribution Group/List Exchange 2010

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
Caperuzzo
Asked:
Caperuzzo
  • 2
  • 2
1 Solution
 
CCSDSK1Commented:
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
 
CCSDSK1Commented:
Sorry, for got the "''s around the last Description
0
 
CaperuzzoAuthor Commented:
Muuuchas gracias!
0
 
CaperuzzoAuthor Commented:
One more thing I'd like to ask you.

How would the syntax be to select users where the Description is empty?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now