How to set or edit Email Distribution Group

Hi,

Today I want to take a tip to add owners for mail distribution groups using set-distributionGroup cmdlet.

Option)

-ManagedBy

If you make cmdelt using with that option, it will replace original distribution group owner

Example)  Set-DistributionGroup -Identity $distGroupName -ManagedBy $owner


 

but,  you just want to add owners to lists with no effective original items,  you can use it

 @{Add=”<owner1>”,”<owner2>”…;Remove=”<owner3>”,”<owner4>”…}

Examples)

Set-DistributionGroup -Identity $distGroupName -ManagedBy @{Add=$owner1  }

Then you can achieve it.