Skip to content

Instantly share code, notes, and snippets.

@kasuken
Created November 4, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasuken/de2c05e663c46b4a8d5d053a6d80b31b to your computer and use it in GitHub Desktop.
Save kasuken/de2c05e663c46b4a8d5d053a6d80b31b to your computer and use it in GitHub Desktop.
How to disable welcome message from Office 365 groups
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment