Forum Discussion
How to remove the Welcome Message when a new member joins a group.
- Mar 28, 2017
You can use the following command to suppress the welcome message for any new users added to the group as a member. The default value will be set to true for this parameter. So you will need to pass "false" as the value to suppress the welcome message.
Set-UnifiedGroup <groupname> -UnifiedGroupWelcomeMessageEnabled:$<true/false>
Here's a quick PowerShell script I threw together that may help:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
#Get all Office 365 Groups that have have the Welcome Message enabled
$O365Groups = Get-UnifiedGroup | Where-Object{$_.WelcomeMessageEnabled -eq $true}
#Iterate through the Groups, disabling the Welcome Message
foreach ($group in $O365Groups)
{
Write-Host "Disabling Welcome Message on O365 Group: " -NoNewline; Write-Host $group.DisplayName -ForegroundColor Cyan
Set-UnifiedGroup $group.Identity -UnifiedGroupWelcomeMessageEnabled:$false
}
#Close the Session
Remove-PSSession $Session
I've commented it, but basically it gathers the Office 365 Groups in your Tenant that have the Welcome Message enabled and then loops through them disabling the Welcome Message. You can run this as needed.
Hope it's useful for someone out there. :)
Ramiro Melgoza Do I need to be owner of this Group for the command to work? or just any Global Admin should be able to run this command? I just tried to run it with my Global Admin and it doesn't work.