Commands › Microsoft Teams
Get-CsTenantTrustedIPAddress
Returns information about the external trusted IPs in the tenant. Trusted IP address from user's endpoint will be checked to determine which internal subnet the user's endpoint is located.
Quick start script
# Get-CsTenantTrustedIPAddress — 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-CsTenantTrustedIPAddress | Format-List
# 3. Export for evidence / drift tracking
Get-CsTenantTrustedIPAddress | Export-Clixml .\CsTenantTrustedIPAddress-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
Identity (Default)
Get-CsTenantTrustedIPAddress [-Tenant <System.Guid>] [[-Identity] <XdsGlobalRelativeIdentity>] [-LocalStore]
[<CommonParameters>]
Filter
Get-CsTenantTrustedIPAddress [-Tenant <System.Guid>] [-Filter <String>] [-LocalStore] [<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.