Commands › Microsoft Teams

Update-M365UnifiedTenantSettings

Microsoft Teams MicrosoftTeams Update-*

This cmdlet updates tenant settings.

Quick start script

# Update-M365UnifiedTenantSettings — 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-M365UnifiedTenantSettings
$before | Format-List

# 3. Make the change
Update-M365UnifiedTenantSettings -Operation <String> -SettingName <String> -SettingValue <String>

# 4. Verify and diff
$after = Get-M365UnifiedTenantSettings
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Update-M365UnifiedTenantSettings -SettingName <String> -SettingValue <String> [-Users <String[]>] [-Groups <String[]>] [-Operation <String>] [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Groups String[] List of all the groups for whom the app is enabled or disabled.
-Operation String yes Operation performed (whether we are adding or removing users/groups).
-SettingName String yes Setting Name to be changed.
-SettingValue String yes Setting Value to be changed.
-Users String[] List of all the users for whom the app is enabled or disabled.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.