Commands › Microsoft Teams
Set-CsTeamsMessagingConfiguration
The TeamsMessagingConfiguration determines the messaging settings for users in your tenant.
Quick start script
# Set-CsTeamsMessagingConfiguration — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTeamsMessagingConfiguration
$before | Format-List
# 3. Make the change (dry run first)
Set-CsTeamsMessagingConfiguration -Identity <String> -WhatIf
Set-CsTeamsMessagingConfiguration -Identity <String>
# 4. Verify and diff
$after = Get-CsTeamsMessagingConfiguration
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-CsTeamsMessagingConfiguration [-Identity] <String>
[-Confirm]
[-CustomEmojis <Boolean>]
[-EnableInOrganizationChatControl <Boolean>]
[-EnableVideoMessageCaptions <Boolean>]
[-FileTypeCheck <string>]
[-Force]
[-MessagingNotes <String>]
[-UrlReputationCheck <string>]
[-ContentBasedPhishingCheck <string>]
[-ReportIncorrectSecurityDetections<string>]
[-Communities <String>]
[-WhatIf]
[<CommonParameters>]
Parameters (13)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.