Commands › Microsoft Teams
Get-CsTenantNetworkSite
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.