DEV Community

Cover image for How to disable welcome message from Office 365 groups
Emanuele Bartolesi
Emanuele Bartolesi

Posted on β€’ Edited on

2

How to disable welcome message from Office 365 groups

Keep this post short and productive.
Request from customer: "I want to disable the welcome message for Office 365 groups in my tenant."
Solution:

The only way to remove the welcome message is connect to Exchange Online with PowerShell.
First of all you have to install the PowerShell module "ExchangeOnlineManagement".

Install-Module -Name ExchangeOnlineManagement
Enter fullscreen mode Exit fullscreen mode

Now you can connect to Exchange Online with this command:

Connect-ExchangeOnline -UserPrincipalName "<YOUR UPN>" -ShowProgress $true
Enter fullscreen mode Exit fullscreen mode

When you are connected you can disable the welcome message for the Office 365 (and other settings) with the following command:

Set-UnifiedGroup $group.Identity -AlwaysSubscribeMembersToCalendarEvents:$false -AutoSubscribeNewMembers:$false  -SubscriptionEnabled:$false -UnifiedGroupWelcomeMessageEnabled:$false
Enter fullscreen mode Exit fullscreen mode

You can disable the welcome message for all the Office 365 Groups in your tenant with the script below:

Connect-ExchangeOnline -UserPrincipalName <YOUR UPN> -ShowProgress $true

#$O365Groups = Get-UnifiedGroup | Where-Object { $_.WelcomeMessageEnabled -eq $true }
$O365Groups = Get-UnifiedGroup

foreach ($group in $O365Groups) {
    Write-Host "Disabling Welcome Message on O365 Group: " -NoNewline; Write-Host $group.DisplayName -ForegroundColor Cyan
    Set-UnifiedGroup $group.Identity -AlwaysSubscribeMembersToCalendarEvents:$false -AutoSubscribeNewMembers:$false  -SubscriptionEnabled:$false -UnifiedGroupWelcomeMessageEnabled:$false
}

Disconnect-ExchangeOnline
Enter fullscreen mode Exit fullscreen mode

Image of Timescale

πŸš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsβ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (2)

Collapse
 
sudosaurus profile image
Chris Cundy β€’

Hi @kasuken

Will this be applied to all future created groups as well? or just existing ones.

Thanks,
Chris

Collapse
 
kasuken profile image
Emanuele Bartolesi β€’

just the existing, but you can use a property to disable the welcome message during the group creation.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs