How to Bulk Add Users to an Active Directory Distribution Group

This PowerShell script adds users from a CSV file to a Distribution Group while checking existing memberships.

It saves the group members before and after the operation in “Before.csv” and “After.csv”, making it easy to track changes.

Features:

βœ… Checks existing members to avoid duplicate additions.

βœ… Lists newly added and already existing users separately.

βœ… Identifies users that do not exist in Active Directory.

βœ… Saves group members to CSV before and after the update, allowing easy change tracking.

This script is ideal for preventing errors, avoiding redundant operations, and keeping a record of changes while managing AD groups. πŸš€

You can also make changes in line with your needs.

 

CSV File

It is not a problem for the email address to be displayed; the script checks user accounts based on the email address.

While performing this task, it will be sufficient to provide the list with email addresses.

Email

bruce.banner@ustundag.com

jackie.chan@ustundag.com

jet.li@ustundag.com

bruce.lee@ustundag.com

yusuf.ustundag@ustundag.com

 

If you found this powershell script helpful, feel free to share it with your team and check out my blog for more quick tips and insights!