Syntax Correction

Roger Roger 5,046 Reputation points
2024-05-26T06:06:16.0166667+00:00

Hi All is the below syntax correct

New-UnifiedGroup -DisplayName "UG1" -Alias "ug1" -PrimarySmtpAddress "UG1@mydomain.com" -Members "user1@mydomain.com" -ManagedBy "user1@mydomain.com" -AccessType private -UnifiedGroupWelcomeMessageEnabled "$false" -AutoSubscribeNewMembers

Microsoft Exchange Online
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,322 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,447 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,960 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Noah Ma-MSFT 1,770 Reputation points Microsoft Vendor
    2024-05-27T05:16:52.0866667+00:00

    Hi @Roger Roger,

    Thank you for posting to Microsoft Community.

    Based on your description, I understand you want to create a new unified group by the command you offered.

    However, you may need notice there are no UnifiedGroupWelcomeMessageEnabled parameter match New-UnifiedGroup, the rest part of the command could work correctly as below.

    A screen shot of a computer

    A black screen with white text

    You could use Set-UnifiedGroup to disable UnifiedGroupWelcomeMessage setting as below.

    User's image

    You could refer to Set-UnifiedGroup (ExchangePowerShell) | Microsoft Learn for more information.

    Hope it helps and if there are anything else you need help, please feel free to contact me.