Tags

,


Here is the command if you want to add a single user into all the distribution groups.

Step 1: save all the groups into a variable

$allgroups = Get-DistributionGroup –Filter *

Step 2: Add the particular user into those groups

Add-DistributionGroupMember –Identity $allgroups –Member “username”

Note: You can use the same method to add multiple members as well.

Advertisements