Commands › Microsoft Teams

New-CsPhoneNumberBulkUpdateTagsOrder

Microsoft Teams MicrosoftTeams New-*

This cmdlet allows the admin to add/remove one or multiple telephone number tags to a number of telephone numbers at once.

Quick start script

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

# 3. Make the change
New-CsPhoneNumberBulkUpdateTagsOrder -PhoneNumbers <String>

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

Syntax

New-CsPhoneNumberBulkUpdateTagsOrder [-TagsToAdd <string>] [-TagsToRemove <string>]
 [-PhoneNumbers <string>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-TagsToAdd String These are the tags to be added to telephone numbers.
-TagsToRemove String These are the tags to be removed from telephone numbers.
-PhoneNumbers String yes These are the list of telephone numbers on which bulk update operation will be performed.

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