Commands › Microsoft Teams

Get-CsOnlinePstnUsage

Microsoft Teams MicrosoftTeams Get-*

Returns information about online public switched telephone network (PSTN) usage records used in your tenant.

Quick start script

# Get-CsOnlinePstnUsage — 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
Get-CsOnlinePstnUsage | Format-List

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

Syntax — 2 parameter sets

Identity (Default)

Get-CsOnlinePstnUsage [[-Identity] <string>] [<CommonParameters>]

Filter

Get-CsOnlinePstnUsage [-Filter <string>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Filter String The Filter parameter allows you to retrieve only those PSTN usages with an Identity matching a particular wildcard string. However, the only Identity available to PSTN usages is Global, so this parameter is not...
-Identity String The level at which these settings are applied. The only identity that can be applied to PSTN usages is Global.

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