Commands › Microsoft Teams

Remove-CsPhoneNumberTenantConfiguration

Microsoft Teams MicrosoftTeams Remove-*

This cmdlet allows the admins to remove a tenant default configuration that applies to all telephone numbers within the tenant.

Quick start script

# Remove-CsPhoneNumberTenantConfiguration — 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-CsPhoneNumberTenantConfiguration
$before | Format-List

# 3. Make the change
Remove-CsPhoneNumberTenantConfiguration

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

Syntax

Remove-CsPhoneNumberTenantConfiguration [-AssignmentEmailEnabled] [-UnassignmentEmailEnabled] [-AssignmentBlockedForever] [-AssignmentBlockedDays] [-AllowOnPremToOnlineMigration]
[<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-AssignmentEmailEnabled SwitchParameter Indicates the assignment email notification configuration will be removed.
-UnassignmentEmailEnabled SwitchParameter Indicates the unassignment email notification configuration will be removed.
-AssignmentBlockedForever SwitchParameter Indicates the assignment blocked forever configuration will be removed.
-AssignmentBlockedDays SwitchParameter Indicates the assignment blocked days configuration will be removed.
-AllowOnPremToOnlineMigration SwitchParameter Indicates the configuration will be removed for allowing OnPremises direct routing numbers to be automatically migrated to online direct routing numbers if an online operation is performed.

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