Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 767
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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