Commands › Microsoft Teams

Set-CsPhoneNumberSmsActivation

Microsoft Teams MicrosoftTeams Set-*

This cmdlet allows the admin to activate SMS capabilities for a telephone number.

Quick start script

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

# 3. Make the change
Set-CsPhoneNumberSmsActivation -TelephoneNumber <String>

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

Syntax

Set-CsPhoneNumberSmsActivation -TelephoneNumber <String> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-TelephoneNumber String yes Indicates the phone number for SMS to be enabled on.

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