Adding & Removing a user from distribution list automatically - Exchange 2007 SP3 RU1

I want to know is it possible in Exchange 2007 when a new user gets created in Active Directory (Windows 2008 R2) with mailbox then it automatically become a member of a particular distribution group, and when a user leaves a company it automatically removed from that DL so we don't have to manually do this.

If yes then please tell me steps how to do this. thanks
tech2010Asked:
Who is Participating?
 
Simon Butler (Sembee)ConsultantCommented:
You cannot do it with recipient policy. That controls email addresses.
The only way would be a dynamic distribution list, although that brings in other issues.

If you remove the account then it will be removed from the group, because it doesn't exist any longer.

If you are using static lists then the only way would be to have a script that runs every night to populate the group with any missing users.

Simon.
0
 
AmitIT ArchitectCommented:
Create one user Template in AD. Copy/Create it for new users. This way new user will get required group permissions. Deleting will automatically remove permission from all groups.
0
 
tech2010Author Commented:
very interesting, lol

I would like to know is there any way in exchange e.g recipient policy etc..
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
AmitIT ArchitectCommented:
Recipient Policies are stamped automatically.
0
 
tech2010Author Commented:
I just named recipient policies but not sure how can this be done.

Any other easy way?
0
 
tech2010Author Commented:
I have a tool which can give me the list of newly created AD user daily, now based on that list can i add all those users into particular mailing list.

I want to automate the process so we don't have to manually add users into that mailing list, since all users have to member of that mailing list.
0
 
Simon Butler (Sembee)ConsultantCommented:
Adding the user is easily done - if you can get the list in CSV format then you will find lots of examples of adding the users to the distribution list by querying the list from a CSV file.

The problem is removing users unless their AD account is removed. There is no straight forward method to do that.

Simon.
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.