Commands › Microsoft Teams

Set-CsOnlineLisPort

Microsoft Teams MicrosoftTeams Set-*

Creates a Location Information Server (LIS) port, creates an association between a port and a location, or modifies an existing port and its associated location. The association between a port and location is used in an Enhanced 9-1-1 (E9-1-1) Enterprise Voice implementation to notify an emergency services operator of the caller's location.

Quick start script

# Set-CsOnlineLisPort — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsOnlineLisPort
$before | Format-List

# 3. Make the change (dry run first)
Set-CsOnlineLisPort -ChassisID <String> -LocationId <Guid> -PortID <String> -WhatIf
Set-CsOnlineLisPort -ChassisID <String> -LocationId <Guid> -PortID <String>

# 4. Verify and diff
$after = Get-CsOnlineLisPort
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-CsOnlineLisPort [-ChassisID] <string> -LocationId <guid> -PortID <string> [-Description <string>] [-Force] [-IsDebug <bool>]
 [-NCSApiUrl <string>] [-TargetStore <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-ChassisID String yes If ChassisID sub type is a MAC Address then this value must be in a string format in the following representation nn-nn-nn-nn-nn-nn, such as 12-34-56-78-90-ab. Otherwise, (different sub type, such as Interface Name),...
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Specifies the administrator defined description of the port.
-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.
-LocationId Guid yes Specifies the unique identifier of the location to be modified.
-NCSApiUrl String This parameter is reserved for internal Microsoft use.
-PortID String yes If the PortID subtype is a MAC Address, this value must be in a string format in the following representation nn-nn-nn-nn-nn-nn, such as 12-34-56-78-90-ab. Otherwise (different subtype, such as Interface Name), this...
-TargetStore String This parameter is reserved for internal Microsoft use.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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