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 [email protected],[email protected],[email protected],[email protected]

Azure AD ScriptPowerShell Scripts

Leave a Reply

Your email address will not be published.