Yes, it will work. You can always run the cmdlet with the -WhatIf switch to confirm what will happen, without actually performing the change.
BypassSecurityGroupManagerCheck
Hi All
I have using exchange 2016 hybrid environment, i have mail enabled security group in exchange onprem lets say group1@Company portal .com, i want to remove user1 from the ownership and add user2 as the new owner. I am getting below error from GUI.
You don't have sufficient permissions. This operation can only be performed by a manager of the group
Will the below syntax work for mail enabled security group.
Set-DistributionGroup group1@Company portal .com -ManagedBy @{Add="user2@Company portal .com"} -BypassSecurityGroupManagerCheck
Set-DistributionGroup group1@Company portal .com -ManagedBy @{Remove="user1@Company portal .com"} -BypassSecurityGroupManagerCheck
1 additional answer
Sort by: Oldest
-
KyleXu-MSFT 26,211 Reputation points
2021-12-02T01:39:50.297+00:00 When you use a non-owner account to manage the owner list, you need use "-BypassSecurityGroupManagerCheck" parameter. Otherwise, you will need to use this owner to manage this group(promote this account to admin).
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.