Use the Update-DistributionGroupMember cmdlet to replace all members of distribution groups and mail-enabled security groups. To add or remove existing group members, use the Add-DistributionGroupMember and Remove-DistributionGroupMember

Update-DistributionGroupMember
[-Identity]
[-BypassSecurityGroupManagerCheck]
[-Confirm]
[-DomainController ]
[-Members ]
[-WhatIf]

Update-DistributionGroupMember -Identity “Research Reports” -Members chris@cloudrain.com,michelle@cloudrain.com,laura@cloudrain.com,julia@cloudrain.com

Azure AD ScriptPowerShell Scripts

Leave a Reply

Your email address will not be published.