How to remove meeting rooms from a Dynamic Distribution Group in Exchange Online

Schumacher, Craig 51 Reputation points

I am trying to remove meeting rooms from a dynamic distribution group in Exchange Online, but I am encountering an error message indicating insufficient privileges. Many organizations have encountered this issue, but I am having difficulty finding a clear solution. Can anyone suggest a solution for removing members from a dynamic distribution group in Exchange Online?

Microsoft Exchange Online
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce Jing-MSFT 1,075 Reputation points Microsoft Vendor


    Thanks for posting your question in the Microsoft Q&A forum.

    Here are two methods you can choose from depending on your situation.

    1.If you want to delete dynamic distribution group members through PowerShell, you must be an organization administrator or a member of the "Security Group Creation and Membership" role in the Exchange Admin Center.

    A blue background with black textDescription automatically generated

    1. You can delete or changes the distribution group by adding ManagedBy to its own attribute.

    Connect to Exchange Online by using remote PowerShell, and run the following cmdlet in Powershell:

    Set-DistributionGroup <group> -ManagedBy @{Add="<value1>", "<value2>", …} -BypassSecurityGroupManagerCheck

    You can refer to this URL for specific details: You don't have sufficient permissions when remove or change distribution group - Exchange | Microsoft Learn

    If my reply helps you, please mark him as an answer. Thanks for the support and understanding.

    0 comments No comments

  2. Schumacher, Craig 51 Reputation points

    I am the global administrator and have access to the group. I am trying to remove members by using this commandlet:

    PS C:\WINDOWS\system32> Get-DynamicDistributionGroup -Identity "All - BE Employees"

    Remove-DistributionGroupMember -Identity All - BE Employees -Member

    I get this error

    Name ManagedBy

    All - BE Employees cschumacher

    Remove-DistributionGroupMember : A positional parameter cannot be found that accepts argument '-'.

    At line:2 char:1

    • Remove-DistributionGroupMember -Identity All - BE Employees -Member A ...
          + CategoryInfo          : InvalidArgument: (:) [Remove-DistributionGroupMember], ParameterBindingException
          + FullyQualifiedErrorId : PositionalParameterNotFound,Remove-DistributionGroupMember

    The name of the Distribution group has a hypen in the name and powershell doesn't like that. How do I get around this?

    0 comments No comments