Regular Expression Language – Quick Reference

This is a regular expression language – quick reference for PowerShell.


How to set or edit Email Distribution Group


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



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



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

Then you can achieve it.