Commands › Microsoft Teams

Get-CsOnlineLisPort

Microsoft Teams MicrosoftTeams Get-*

Retrieves one or more ports from the location configuration database.

Quick start script

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

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

Syntax

Get-CsOnlineLisPort [[-ChassisID] <string>] [-Force] [-IsDebug <bool>] [-NCSApiUrl <string>] [-PortID <string>] [-TargetStore <string>] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-ChassisID String The Media Access Control (MAC) address of the port's switch. This value will be in the form nn-nn-nn-nn-nn-nn, such as 12-34-56-78-90-ab.
-Force SwitchParameter The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for...
-IsDebug Boolean This parameter is reserved for internal Microsoft use.
-NCSApiUrl String This parameter is reserved for internal Microsoft use.
-PortID String This parameter identifies the ID of the port.
-TargetStore String 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.