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
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

630 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