Two Ways to Add Multiple Users or Contacts to a Distribution Group

Two ways to add a large number of users to a distribution group: ADUC or PowerShell
Say you just created a large number of new Mail Contacts or you just created a new Distribution Group and you need to add the new contacts or a large number of users to the new group. There are multiple ways to do this. I’ll show you two of them that are useful in two different scenarios.
Method One: If all of the objects are in a single OU and have some data field in common (created on the same day, department name, job title, description, etc.), the simplest method is to use Active Directory Users and Computers.
1. Add that field to the visible columns in ADUC.
2. Sort by the column that has the common data.
3. Select all of the users or contacts.
4. Right-click and choose “Add to a group…”
5. Choose the group and click OK.
Method Two: If the objects are scattered in different OUs in the Active Directory tree structure, it will probably be easier to use PowerShell.
1. Define your search criteria. Were all the objects created in the last two hours? Are they all Mail Contacts with a particular domain name in the email address? Use that to get a list of the objects and save the DistinguishedName value to a variable. For example…
$MyList = Get-Mailbox -ResultSize Unlimited | ?{$_.WhenCreated -gt “7/2/2015 17:30”} | Select DistinguishedName
or
$MyList = Get-MailContact -OrganizationalUnit “Domain.com/Employees/SalesDept” | ?{$_.PrimarySMTPAddress -like “*yahoo.com”} | Select DistinguishedName
2. Pipe your new variable to the Add-DistributionGroupMember cmdlet like this:
$MyList | ForEach {Add-DistributionGroupMember -Identity GroupAlias -Member $_.DistinguishedName}
Thanks for posting this, I used method 1 to great success after researching scripting methods to do this.
Cheers,
Eli