Exchange 2010 assign rights to send to restricted distribution groups

In Microsoft Exchange we can set distribution group as restricted.
Then this distribution group will only accept messages from specified users.

We can set this settings in distribution group properties in tab Mail Flow SettingsMessage Delivery Restrictions.

In section Accept messages from select Only senders in the following list and add all users who can send messages to this group.

Messages from other users will be rejected

DistributionGroupRestricted

 

If we have many of distribution groups with restrictions and we need to assign send rights to this groups then we have a problem.

Continue reading

Get distribution group all members – nested

How can we get a list of mailboxes belonging to a distribution group?
In a simple way, by using the EMC console and check who is a member of a group, or by using powershell EMS console and use the command:

Get-DistributionGroupMember Test_Group

 

In this way we get a list of objects in the group, both mailboxes, contacts, and other groups.

And here there is a problem, because if the distribution group includes the next distribution group, and this again next etc, how can we get a list of all people who receive an email after sending a message to a distribution group?

Unfortunately, using only the Get-DistributionGroupMember we won’t get such information.

This command returns only the objects directly in a group, without nesting.

In this case, we have to use PowerShell commands for Active Directory available.

To do this run EMS console and import the Active Directory module command as follows:

import-module ActiveDirectory

Continue reading

Exchange 2010 remove disabled users from distribution group

To keep Exchange Distribution Groups in order, we recommend to “clean” members of those groups.

We should remove all disabled users from distribution groups.

When we have a lot of Distribution Group we can use powershell script like below to do this.

This script gets all Distribution Groups from Exchange Organization, then will check every group for users which are disabled and they have Active Directory account in specified OU.

This script will also export all informations to a .csv file, where you can find following informations:

 

  • Name of distribution group
  • user DisplayName
  • SamAccountName
  • path in Active Directory to user account

Continue reading

Exchange Server 2010 create dynamic distribution group from security group members

 

When you have Active Directory Security Group which add permissions to some share or other resources, sometimes you need to send email to all group members to inform about some changes.

You can choose all users from Security Group but what if this group has more than 100 users.

You can create Exchange Dynamic Distribution Group.

When you want to create Exchange Dynamic Distribution Group, and add all members of security group to this dynamic group, it’s not so easy.

You can’t do this using Exchange Management Console.
Because when you want to create dynamic distribution group from Exchange Management Console you can choose Users with Exchange Mailboxes

Continue reading