New-CsOnlineLisCivicAddress

 

上次修改主題的時間:2017-06-20

Use the New-CsOnlineLisCivicAddress cmdlet to create a civic address in the Location Information Service (LIS.)

New-CsOnlineLisCivicAddress -CompanyName <String> -CountryOrRegion <String> [-City <String>] [-CityAlias <String>] [-CompanyTaxId <String>] [-Confirm [<SwitchParameter>]] [-Description <String>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-HouseNumber <String>] [-HouseNumberSuffix <String>] [-PostalCode <String>] [-PostDirectional <String>] [-PreDirectional <String>] [-StateOrProvince <String>] [-StreetName <String>] [-StreetSuffix <String>] [-Tenant <Guid>] [-ValidationStatus <String>] [-WhatIf [<SwitchParameter>]]

This example creates a new civic address described as "West Coast Headquarters": 3910 Smith Street NE, Redmond WA, 98052.

New -CsOnlineLisCivicAddress -HouseNumber 3910 -StreetName Smith -StreetSuffix Street -PostDirectional NE -City Redmond -StateorProvince Washington -Country US -PostalCode 98052 -Description "West Coast Headquarters" -CompanyName Contoso

Because each civic address needs at least one location to assign to users, creating a new civic address also creates a default location. This is useful in cases where a civic address has no particular sub-locations. In that scenario you can create the civic address using the New –CsOnlineLisCivicAddress cmdlet and use the default location identifier for assignment to users. The example output from the Get-CsOnlineLisCivicAddress below shows the DefaultLocationId property.

CivicAddressId     : 51a8a6e3-dae4-4653-9a99-a6e71c4c24ac
HouseNumber        :
HouseNumberSuffix  :
PreDirectional     :
StreetName         :
StreetSuffix       :
PostDirectional    :
City               :
PostalCode         :
StateOrProvince    :
CountryOrRegion    : US
Description        :
CompanyName        : MSFT
DefaultLocationId  : 75301b5d-3609-458e-a379-da9a1ab33228
ValidationStatus   : NotValidated
NumberOfVoiceUsers : 0

 

Parameter Required Type Description

CompanyName

Required

System.String

指定您的組織名稱。

CountryOrRegion

Required

System.String

Specifies the country or region of the new civic address. Needs to be a valid country code as contained in the ISO 3166-1 alpha-2 specification.

City

Optional

System.String

Specifies the city of the new civic address.

CityAlias

Optional

System.String

PARAMVALUE: String

CompanyTaxId

Optional

System.String

PARAMVALUE: String

Confirm

Optional

System.Management.Automation.SwitchParameter

Confirm 參數會導致此命令暫停處理,並需要確認才能進行。

Description

Optional

System.String

Specifies an administrator defined description of the new civic address.

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

將保留此參數供 Microsoft 內部使用。

Force

Optional

System.Management.Automation.SwitchParameter

Force 參數會指定是否抑制警告和確認訊息。這在撰寫指令碼以抑制互動式提示時可能很有用。如果命令中不提供 Force 參數,您會在必要時看到提示管理員輸入。

HouseNumber

Optional

System.String

Specifies the numeric portion of the new civic address.

HouseNumberSuffix

Optional

System.String

Specifies the numeric suffix of the new civic address. For example, if the property was multiplexed, the HouseNumberSuffix parameter would be the multiplex specifier: "425A Smith Avenue", or "425B Smith Avenue".

PostalCode

Optional

System.String

Specifies the postal code of the new civic address.

PostDirectional

Optional

System.String

Specifies the directional attribute of the new civic address which follows the street name. For example, "425 Smith Avenue NE".

PreDirectional

Optional

System.String

Specifies the directional attribute of the new civic address which precedes the street name. For example, "425 NE Smith Avenue ".

StateOrProvince

Optional

System.String

Specifies the state or province of the new civic address.

StreetName

Optional

System.String

Specifies the street name of the new civic address.

StreetSuffix

Optional

System.String

Specifies the street type of the new civic address. The street suffix will typically be something like street, avenue, way, or boulevard.

Tenant

Optional

System.Guid

將保留此參數供 Microsoft 內部使用。

ValidationStatus

Optional

System.String

PARAMVALUE: String

WhatIf

Optional

System.Management.Automation.SwitchParameter

WhatIf 參數會導致此命令模擬其結果。使用此參數,您不需認可變更,就能檢視這些變更。

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

 
顯示: