Dynamic Distribution Group Exchange 2010

Im trying to setup DDG on exchage 2010. Im using New Dyamic Distribution Group Wizard. under condition section im asked to select condition.

I want the group to be based on Office Attribute which is not listed. There is a State or Province, Department, Company but no office.

Does it have to be done in shell ?

thanks

LVL 3
aucklandnzAsked:
Who is Participating?
 
AkhaterCommented:
yes it has to be done in shell


New-DynamicDistributionGroup -Name Name -OrganizationalUnit contoso.com/Users -RecipientFilter {Office -eq 'North Building' }
0
 
AkhaterCommented:
0
 
aucklandnzAuthor Commented:
im trying to add but im getting error
New-DynamicDistributionGroup -Name Name -OrganizationalUnit ta.local/My Company/IT Users -RecipientFilter {Office -eq 'Head Office'}

A positional parameter cannot be found that accepts argument 'Company'.
    + CategoryInfo          : InvalidArgument: (:) [New-DynamicDistributionGroup], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,New-DynamicDistributionGroup

I tried without spaces aswell,

any idea ?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
aucklandnzAuthor Commented:
i have managed to create it by :

 New-DynamicDistributionGroup -Name "IT Group" -Alias "IT_Group" -OrganizationalUnit "ta.local/My Company" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and ((Office -eq 'Head Office')))} -RecipientContainer "ta.local"

the group has been created, i have changed Office attribiute on one user, then i righ clicked on group>properties>filter?preview and he is there. however when i try to send email to group it does nothing
0
 
aucklandnzAuthor Commented:
all working now, my outlook had problems, after restarting all emails arrived.
0
 
aucklandnzAuthor Commented:
it just doesnt appear in GAL
0
 
AkhaterCommented:
for it to appear in gal it could take up to 48 hours don't worry, try OWA you will see it
0
 
aucklandnzAuthor Commented:
Thanks for your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.