Commands › Microsoft Teams
Set-CsOnlineLisSwitch
Creates a Location Information Server (LIS) switch, creates an association between a switch and a location, or modifies an existing switch and its associated location. The association between a switch 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-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)
Set-CsOnlineLisSwitch -ChassisID <String> -LocationId <Guid> -WhatIf
Set-CsOnlineLisSwitch -ChassisID <String> -LocationId <Guid>
# 4. Verify and diff
$after = Get-CsOnlineLisSwitch
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-CsOnlineLisSwitch [-ChassisID] <string> -LocationId <guid> [-Description <string>] [-Force] [-IsDebug <bool>]
[-NCSApiUrl <string>] [-TargetStore <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.