Commands › Microsoft Teams

Get-CsOnlineLisSubnet

Microsoft Teams MicrosoftTeams Get-*

Retrieves one or more subnets from the location configuration database.

App-only limitation executed read-only 12 Nov 2026 · module v8.0.0 — The remote server returned an error: (403) Forbidden.

Quick start script

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

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

Syntax

Get-CsOnlineLisSubnet [[-TenantId] <Guid>] [[-Subnet] <String>] [-Filter <String>] [-IsDebug <Boolean>] [-TargetStore <String>]
 [-NCSApiUrl <String>] [-Force] [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Filter String Filters subnets by property values. Use `Subnet -eq '192.0.2.0'` to match a single address, or `Subnet -in ['192.0.2.0', '2001:db8:1234::']` to match any address in a list.
-Force SwitchParameter The `-Force` switch suppresses warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If you don't include the `-Force` switch in the command, the command prompts you for...
-IsDebug Boolean This parameter is reserved for internal Microsoft use.
-NCSApiUrl String This parameter is reserved for internal Microsoft use.
-Subnet String The IP address of the subnet. This value can be either IPv4 or IPv6 format.
-TargetStore String This parameter is reserved for internal Microsoft use.
-TenantId Guid 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.