Link to home
Start Free TrialLog in
Avatar of dougdog
dougdog

asked on

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

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
Avatar of Mkris9
Mkris9
Flag of United Kingdom of Great Britain and Northern Ireland image

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 ?
ASKER CERTIFIED SOLUTION
Avatar of endital1097
endital1097
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tspreeth
tspreeth

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'  .
you can then validate the dynamic distribution group

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

Open in new window