Dynamic Group
Use case: Filter all Asia users for email comms
(user.country -in ["MY","SG","VN","CN","TW","HK","IN","ID"]) and
(user.displayName -in ["Snow Wang","Wenjian Khor"]) and
(user.accountEnabled -eq True) and (user.mail -contains "jabil.com")Install-Module ExchangePowershell
Import-Module ExchangePowershell
Connect-ExchangeOnline
#Get current setting and update
Get-UnifiedGroup -Identity "[email protected]" | Select WelcomeMessageEnabled
Set-UnifiedGroup -Identity "[email protected]" -UnifiedGroupWelcomeMessageEnable:$false
#Check and compare with previous output
Get-UnifiedGroup -Identity "[email protected]" | Select WelcomeMessageEnabled


Last updated