Remove-CsLisSubnet
Removes a Location Information Server (LIS) subnet. This cmdlet was introduced in Lync Server 2010.
Syntax
Remove-CsLisSubnet
-Subnet <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Enhanced 9-1-1 (E9-1-1) allows an emergency operator to identify the location of a caller without having to ask the caller for that information.
In the case where a caller is calling from a Voice over Internet Protocol (VoIP) connection, that information must be extracted based on various connection factors.
The VoIP administrator must configure a location map (called a wiremap) that will determine a caller's location.
This cmdlet removes a subnet from the location configuration database.
Removing the subnet will not remove the location associated with that subnet.
Use the Remove-CsLisLocation
cmdlet to remove a location.
If you attempt to remove a subnet that does not exist, no action will be taken and you will not receive an error or a warning message.
Examples
-------------------------- Example 1 --------------------------
Remove-CsLisSubnet -Subnet 192.10.10.0
Example 1 removes the LIS subnet location entry for the subnet with the IP address 192.10.10.0. The command in this example includes only one (required) parameter: Subnet. The value of the Subnet in this example is an IPv4 address, 192.10.10.0.
If this subnet is associated with a location, that location will not be removed, only the subnet will be removed from the location mapping.
-------------------------- Example 2 --------------------------
Get-CsLisSubnet | Where-Object {$_.Location -eq "Bldg30/Room1000"} | Remove-CsLisSubnet
This example removes all subnets that are associated with the location Bldg30/Room1000.
The example begins with a call to the Get-CsLisSubnet
cmdlet, which returns a collection of all LIS subnets.
This collection is piped to the Where-Object
cmdlet, which finds the items in that collection that have a Location property that is equal to (-eq) the string Bldg30/Room1000.
Finally, we pipe this collection of subnets with that Location to the Remove-CsLisSubnet
cmdlet, which removes everything in that collection.
Note that, as in Example 1, no locations are removed from the location configuration database, only the subnets that reference those locations are removed.
You can remove locations by calling the Remove-CsLisLocation
cmdlet.
Parameters
-Confirm
Prompts you for confirmation before executing the command.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-Subnet
The IP address of the subnet you want to remove. This value will be an IPv4 address (digits separated by periods, such as 192.0.2.0).
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019 |
Inputs
Accepts pipelined input of Location Information Server (LIS) subnet objects.
Outputs
This cmdlet removes an object of type System.Management.Automation.PSCustomObject.