[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Creates a new location or modifies an existing location in the location database for Enhanced 911 (E9-1-1).

Syntax

Set-CsLisLocation -City <String> -CompanyName <String> -Country <String> -HouseNumber <String> -HouseNumberSuffix <String> -Location <String> -PostalCode <String> -PostDirectional <String> -PreDirectional <String> -State <String> -StreetName <String> -StreetSuffix <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
Set-CsLisLocation -Instance <PSObject> [-City <String>] [-CompanyName <String>] [-Confirm [<SwitchParameter>]] [-Country <String>] [-HouseNumber <String>] [-HouseNumberSuffix <String>] [-Location <String>] [-PostalCode <String>] [-PostDirectional <String>] [-PreDirectional <String>] [-State <String>] [-StreetName <String>] [-StreetSuffix <String>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Instance

Required

PSObject

A reference to a location object. This object must contain the properties required to create a location. You can retrieve an object of this type by calling Get-CsLisLocation.

City

Required

String

The location city.

Maximum length: 64 characters.

CompanyName

Required

String

The name of the company at this location.

Maximum length: 60 characters

Country

Required

String

The country this location is in.

Maximum length: 2 characters

HouseNumber

Required

String

The house number of the location. For a company this is the number on the street of the company.

Maximum length: 10 characters

HouseNumberSuffix

Required

String

Additional information for the house number, such as 1/2 or A. For example, 1234 1/2 Oak Street or 1234 A Elm Street.

Note: To designate an apartment number or office suite, you must use the Location parameter. For example, -Location "Suite 100/Office 150".

Maximum length: 5 characters

Location

Required

String

The name for this location. Typically this value is the name of a location more specific than the civic address, such as an office number, but it can be any string value.

Maximum length: 20 characters

PostalCode

Required

String

The postal code associated with this location.

Maximum length: 10 characters

PostDirectional

Required

String

The directional designation of a street name. For example, NE or NW for Main Street NE or 7th Avenue NW.

Maximum length: 2 characters

PreDirectional

Required

String

The directional designation for a street name that precedes the name of the street. For example, NE or NW or NE Main Street or NW 7th Avenue.

Maximum length: 2 characters

State

Required

String

The state or province associated with this location.

Maximum length: 2 characters

StreetName

Required

String

The name of the street for this location.

Maximum length: 60 characters

StreetSuffix

Required

String

The type of street designated in a street name, such as Street, Avenue, or Court.

Maximum length: 10 characters

Confirm

Optional

SwitchParameter

Prompts you for confirmation before executing the command.

WhatIf

Optional

SwitchParameter

Describes what would happen if you executed the command without actually executing the command.

Detailed Description

E9-1-1 enables those who answer emergency calls to determine the caller’s geographic location without having to ask the caller for that information. In Microsoft Communications Server 2010 the location is determined based on mapping the caller’s port, subnet, switch, or wireless access point to a specific address. (This map is known as a wiremap.) This cmdlet adds a new address to or modifies an existing address in the list of locations that are stored in the location database on the Location Information Server (LIS). The locations are subsequently matched to a list of valid addresses provided by the Emergency Services Provider working with the company.

The combination of all required parameters (other than Instance) for this cmdlet constitutes a unique entry. Changing any of these parameters will create a new location rather than modifying an existing location. Note that although all these parameters are required, some can contain null values. The parameters that must contain non-null values are: Location, HouseNumber, StreetName, City, State, and Country. To change an existing value, you must use the Instance parameter (or pipe an instance to the cmdlet).

In addition to using this cmdlet to create a location, a location will also be created automatically when a new address is entered for port, subnet, switch, or wireless access point information. This information can be entered using the Set-CsLisPort, Set-CsLisSubnet, Set-CsLisSwitch, and Set-CsLisWirelessAccessPoint cmdlets.

Return Types

This cmdlet does not return a value or object. It creates an object of type System.Management.Automation.PSCustomObject.

Examples

-------------------------- Example 1 --------------------------

Copy Code
Set-CsLisLocation -Location Bldg30NEWing -HouseNumber 1000 -StreetName Main -City Redmond -State WA -Country US

Example 1 creates a new location named Bldg30NEWing. This command fills in all the parameters that are required to have values for a location to be created. In this example the address of the location is 1000 Main, Redmond, WA, USA. That address is entered by specifying the HouseNumber parameter with the value 1000; the StreetName parameter with the value Main; the City parameter with the value Redmond; and the Country parameter with the value US.

Note that if you run a command with the parameters shown here you will be prompted to enter more parameters. However, you can simply press Enter at each prompt without supplying values and your location will be created.

-------------------------- Example 2 --------------------------

Copy Code
Set-CsLisLocation -Location "Suite 100/Office 20" -CompanyName "Litware, Inc." -HouseNumber 1234 -HouseNumberSuffix "" -PreDirectional "" -StreetName Main -StreetSuffix St -PostDirectional "" -City Redmond -State WA -PostalCode 99999 -Country US

This example is similar to Example 1 in that it creates a new location. However, in this example the command specifies all the parameters for the cmdlet. This will avoid the prompts that will follow the command in Example 1 because this example instead simply sets any values we want to leave blank to empty strings.

-------------------------- Example 3 --------------------------

Copy Code
$a = Get-CsLisLocation | Where-Object {$_.Location -ceq "Bldg30NEWing"}
Set-CsLisLocation -Instance $a -StreetSuffix Street

This example modifies the location created in Example 1. The first line in the example begins with a call to the Get-CsLisLocation cmdlet. This returns a collection of all locations defined within the Communications Server deployment. This collection is then piped to the Where-Object cmdlet. Where-Object retrieves all items from the collection where the Location property is equal to (-ceq, case-sensitive equals) Bldg30NEWing. The object matching this criteria is assigned to the variable $a.

In line 2 we call Set-CsLisLocation. The first parameter is the Instance parameter. We pass this parameter the variable ($a) containing the object we retrieved in line 1, which just happens to be the object we want to modify. We then specify the StreetSuffix parameter, passing it a value of Street. This will change the value of the StreetSuffix property of the location in variable $a to Street.

Keep in mind that because Location is not a unique property, the Where-Object cmdlet could return more than one location. If it does, this example will not work. To modify multiple locations at once, see Example 3.

-------------------------- Example 4 --------------------------

Copy Code
$a = Get-CsLisLocation | Where-Object {$_.Location -ceq "NorthCampus"}
$a | Set-CsLisLocation -StreetSuffix Avenue

Example 4 modifies the StreetSuffix property of one or more location objects. The example begins much like Example 3. We begin by calling Get-CsLisLocation to retrieve all the locations. We pipe this collection of locations to Where-Object, which narrows down the collection to only those locations with a Location property equal to NorthCampus. This new collection is stored in variable $a. In line 2 we pipe the contents of $a to the Set-LisLocation cmdlet. This cmdlet will go through each object (each location) that was stored in $a and modify that object. In that case the modification is the change the StreetSuffix property of each object to Avenue.