Adding users to a distribution list, in bulk
If you've every had to add more then two users to a distribution list in outlook you know just how painful the modal dialogs can be.
Doing it in bulk is easy, if you have the right tools (and assuming you are the owner or co-owner of the group).
- PowerShell
- PowerShell Commands for Active Directory
- a list of users you want to add
In this example, I have my list of users in a text file, but it could come from a DB, feed, or other distribution list.
The "script" is all of two lines long:
> $users = cat users.txt | Get-QADUser > Get-QADGroup <groupName> | Add-QADGroupMember -member $users
How great is that?