Solved

How can i create a exchange 2007 dynamic distribution group based on a company name and 1 user

Posted on 2010-09-07
4
409 Views
Last Modified: 2012-05-10
How can i create a dynamic distribution group that will pull all users based on the company name in active directory and add 1 extra user to that group sa based on username or alias
0
Comment
Question by:dougdog
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Mkris9
ID: 33616761
http://technet.microsoft.com/en-us/library/bb124268(EXCHG.80).aspx should help in creating the Dist Group based on company. didn't really understand about the extra user. can you explain a bit more pls ?
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33616817
here is the 2007 version
New-DynamicDistributionGroup -Name TestDDG -RecipientFilter { ((Alias -eq 'jim') -or (((((Company -eq 'Contoso') -and (((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUniversalDistributionGroup') -or (RecipientType -eq 'MailUniversalSecurityGroup') -or (RecipientType -eq 'MailNonUniversalGroup') -or (RecipientType -eq 'DynamicDistributionGroup'))))))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) ))) }

Open in new window

0
 
LVL 2

Expert Comment

by:tspreeth
ID: 33616824
Try with this command :

New-DynamicDistributionGroup -Name yourDLName -OrganizationalUnit contoso.com/Users -RecipientFilter { ((RecipientType -eq 'UserMailbox')  and (Company -eq 'yourcompanyname')  or (customAttribute1 -eq 'yourvalue')) }
For that one use assumption here is to add customAttribute1 value to 'yourvalue'  .
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33617013
you can then validate the dynamic distribution group

$group = Get-DynamicDistributionGroup testddg
Get-Recipient -RecipientPreviewFilter $group.recipientfilter

Open in new window

0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
how to add IIS SMTP to handle application/Scanner relays into office 365.

772 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