Created
November 4, 2020 20:16
-
-
Save kasuken/de2c05e663c46b4a8d5d053a6d80b31b to your computer and use it in GitHub Desktop.
How to disable welcome message from Office 365 groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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