Commands › Microsoft Teams

New-CsPhoneNumberUsageChangeOrder

Microsoft Teams MicrosoftTeams New-*

This cmdlet creates a request to to update TN Usage (e.g. from User Type to Service Type).

Quick start script

# New-CsPhoneNumberUsageChangeOrder — 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-CsPhoneNumberUsageChangeOrder
$before | Format-List

# 3. Make the change
New-CsPhoneNumberUsageChangeOrder -TelephoneNumber <String[]> -Usage <SwitchParameter>

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

Syntax

New-CsPhoneNumberUsageChangeOrder -TelephoneNumber <String[]> -Usage <String>

Parameters (2)

ParameterTypeRequiredWhat it controls
-TelephoneNumber String[] yes Specifies the telephone number(s) to remove. The format can be with or without the prefixed +, but needs to include country code etc.
-Usage SwitchParameter yes Specifies the new usage type for the given telephone numbers.

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