Commands › Microsoft Teams

Set-TeamChannel

Microsoft Teams MicrosoftTeams Set-*

Update Team channels settings.

Quick start script

# Set-TeamChannel — 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-TeamChannel
$before | Format-List

# 3. Make the change
Set-TeamChannel -CurrentDisplayName <String> -GroupId <String>

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

Syntax

Set-TeamChannel -GroupId <String> -CurrentDisplayName <String> [-NewDisplayName <String>]
 [-Description <String>] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-CurrentDisplayName String yes Current channel name
-Description String Updated Channel description. Channel Description Characters Limit - 1024.
-GroupId String yes GroupId of the team
-NewDisplayName String New Channel display name. Names must be 50 characters or less, and can't contain the characters # % & * { } / \ : \< \> ? + | ' "

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