Add bulk user to exchange distribution group from text file with Add-DistributionGroupMember

Add bulk user to exchange distribution group from text file with Add-DistributionGroupMember

You can add multiple users in exchange distribution group from the text file, in below example the command is importing user email address from c:user.txt file and adding the users in mygroup disrtibution group.

foreach($user in gc “C:user.txt”)

{

$user

Add-DistributionGroupMember -Identity “mygroup” -Member $user

}

Note – please change input values (marked in yellow) as per your requirements. 

(Visited 141 times, 1 visits today)

Add a Comment

Facebook