Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
418 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

How to effectively resolve the number one email related issue received by helpdesks.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

885 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