Commands › Microsoft Teams

Get-CsTenantNetworkSite

Microsoft Teams MicrosoftTeams Get-*

Returns information about the network site setting in the tenant. Tenant network site is used for Location Based Routing.

Quick start script

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

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

Syntax — 3 parameter sets

Identity (Default)

Get-CsTenantNetworkSite [[-Identity] <string>] [-IncludePhoneNumbers <bool>] [<CommonParameters>]

QueryParameter

Get-CsTenantNetworkSite [-IncludePhoneNumbers <bool>] [-Filter <string>] [<CommonParameters>]

Filter

Get-CsTenantNetworkSite [-IncludePhoneNumbers <bool>] [-Filter <string>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Filter String Enables you to use wildcard characters when indicating the site (or sites) to be returned.
-Identity String The Identity parameter is a unique identifier for the site.
-IncludePhoneNumbers Boolean This parameter is reserved for internal Microsoft use.

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