Commands › Microsoft Teams

Test-CsTeamsUnassignedNumberTreatment

Microsoft Teams MicrosoftTeams Test-*

This cmdlet tests the given number against the created (by using New-CsTeamsUnassignedNumberTreatment cmdlet) unassigned number treatment configurations.

Quick start script

# Test-CsTeamsUnassignedNumberTreatment — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Test-CsTeamsUnassignedNumberTreatment -PhoneNumber <String> | Format-List

# 3. Export for evidence / drift tracking
Test-CsTeamsUnassignedNumberTreatment | Export-Clixml .\CsTeamsUnassignedNumberTreatment-$(Get-Date -Format yyyyMMdd).xml

Syntax

Test-CsTeamsUnassignedNumberTreatment -PhoneNumber <string> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-PhoneNumber String yes The phone number to be tested.

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