Link to home
Start Free TrialLog in
Avatar of Snagajob IT
Snagajob IT

asked on

how can I make a dynamic distribution group exchange 2010 based on street address

I am familiar with making dynamic distribution lists and have several in place already. Our company recently opened a new office across the street from our headquarters. Management has requested a DG based on the team members street address. I have one that pulls users based on city. I now need to have one for the city and one for each street address in the city totaling 3 (1-all city, 1-address A, 1-address B)
The pre-configured conditions are for State, Department or Company in Exchange. I assume I can create one with a custom attribute but then the attribute would have to modified for each user.
Anyone have a better suggestion?
ASKER CERTIFIED SOLUTION
Avatar of David Paris Vicente
David Paris Vicente
Flag of Spain 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 Snagajob IT
Snagajob IT

ASKER

I used the following command and it completed successfully however when I preview the list it is not populating. Any ideas on why it wouldn't? I have verified the street address field is accurate and matches the string

new-dynamicdistributiongroup -name "Company 466 King St" -alias "company.466" -recipientfilter {((recipienttype -eq 'usermailbox') -and (StreetAddress -eq "466 King St"))}
I create a DG with that cmdlet then I insert in my lab a couple of Users with that address and is working fine.

Are you pointing to the DG to the correct OU?
I moved the DG from the default users to group to the appropriate OU and  this is reflected in EMC.
Never mind I see what you were talking about. The filter was being applied to the default Users OU and not against the Departments OU where our users live. Thanks for pointing that out.
I wanted to said to point the DG to correct OU :)
Sorry for my  English.