Share via

Mail enabled security group addition via powershell

Gurudas 926 Reputation points
Aug 10, 2023, 11:44 AM

Dear Team, Greetings for the day! We need to add members to "sender inside and outside organisation" in the mail enabled security group via powershell as we are unable to do so via gui interface. Please suggest with screenshot. Assuming ******@contoso.com is a mail enabled security group and ******@contoso.com is an intended recipient. Your quick response will be highly appreciated.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,777 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,513 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,301 Reputation points Microsoft External Staff
    Aug 11, 2023, 1:50 AM

    Hi @Gurudas ,

    From the description, seems like you are trying to modify the delivery management settings for the mail-enabled security group, right?

    If this is true, you can run the command below:

    Set-DistributionGroup -Identity "Dl-finance-all" -RequireSenderAuthenticationEnabled $false -AcceptMessagesOnlyFrom @{Add="******@contoso.com"}
    
    

    User's image

    Reference: Set-DistributionGroup.

    Actually, according to this official document, this can also be completed in the Exchange admin center. Select the group in EAC, click the Settings tab on the details pane, click "Edit delivery management":

    User's image

    User's image


    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.