Commands › Microsoft Teams

Remove-CsOnlineLisSwitch

Microsoft Teams MicrosoftTeams Remove-*

Removes a Location Information Server (LIS) network switch.

Quick start script

# Remove-CsOnlineLisSwitch — 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-CsOnlineLisSwitch
$before | Format-List

# 3. Make the change (dry run first)
Remove-CsOnlineLisSwitch -ChassisID <String> -WhatIf
Remove-CsOnlineLisSwitch -ChassisID <String>

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

Syntax

Remove-CsOnlineLisSwitch [-ChassisID] <string> [-Force] [-IsDebug <bool>] [-NCSApiUrl <string>]
 [-TargetStore <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-ChassisID String yes 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.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-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.
-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.