Set-CsTenantDialPlan

 

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

Use the Set-CsTenantDialPlan cmdlet to modify an existing tenant dial plan.

Set-CsTenantDialPlan [-Identity <XdsIdentity>] <COMMON PARAMETERS>

Set-CsTenantDialPlan [-Instance <PSObject>] <COMMON PARAMETERS>

COMMON PARAMETERS: [-Confirm [<SwitchParameter>]] [-Description <String>] [-ExternalAccessPrefix <String>] [-Force <SwitchParameter>] [-NormalizationRules <PSListModifier>] [-OptimizeDeviceDialing <$true | $false>] [-SimpleName <String>] [-Tenant <Guid>] [-WhatIf [<SwitchParameter>]]

This example updates the vt1tenantDialPlan9 tenant dial plan to use an external access prefix of 123.

Set-CsTenantDialPlan  -ExternalAccessPrefix "123" -Identity vt1tenantDialPlan9

This example updates the vt1tenantDialPlan9 tenant dial plan to have an external access prefix of 123 and use the Global/NR2 normalization rules.

$nr2 = Get-CsVoiceNormalizationRule -Identity Global/NR2 

Set-CsTenantDialPlan  -ExternalAccessPrefix "123" -Identity vt1tenantDialPlan9 -NormalizationRules @{Add=$nr2}

 

Parameter Required Type Description

Confirm

Optional

System.Management.Automation.SwitchParameter

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

Description

Optional

System.String

The Description parameter describes the tenant dial plan - what it’s for, what type of user it applies to, or any other information that helps to identify the purpose of the tenant dial plan. Maximum characters is 512.

ExternalAccessPrefix

Optional

System.String

The ExternalAccessPrefix parameter is a number (or set of numbers) that designates the call as external to the organization. (For example, to tenant-dial an outside line, first dial 9.) This prefix is ignored by the normalization rules, although these rules will be applied to the rest of the number. The OptimizeDeviceDialing parameter must be set to True for this value to take effect.

The value of this parameter must match the regular expression [0-9]{1,4}. This means it must be a value one to four digits in length, with each digit being a number 0 through 9.

Force

Optional

System.Management.Automation.SwitchParameter

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

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

The Identity parameter is a unique identifier that designates the scope, or for per-user plans a name, to identify the tenant dial plan to modify. For example, a site Identity is in the format site:<sitename>, where sitename is the name of the site. A tenant dial plan at the service scope is a Registrar or PSTN gateway service, where the Identity value is formatted in this way: Registrar:Redmond.litwareinc.com. A per-user Identity is a unique string value.

Instance

Optional

TenantDialPlan

The Instance parameter allows you to pass a reference to an object to the cmdlet, rather than set individual parameter values. You can retrieve this object reference by calling the Get-CsTenantDialPlan cmdlet.

NormalizationRules

Optional

System.Management.Automation.PSListModifier

The NormalizationRules parameter is a list of normalization rules that are applied to this dial plan. Although this list and these rules can be created directly by using this cmdlet, we recommend that you create the normalization rules by the New-CsVoiceNormalizationRule cmdlet, which creates the rule and assigns it to the specified tenant dial plan.

The number of normalization rules cannot exceed 25 per TenantDialPlan.

OptimizeDeviceDialing

Optional

System.Boolean

PARAMVALUE: $true | $false

Setting the OptimizeDeviceDialing parameter to True applies the prefix in the ExternalAccessPrefix parameter to calls made outside the organization. This value can be set to True only if a value has been specified for the ExternalAccessPrefix parameter.

Default: False

SimpleName

Optional

System.String

The SimpleName parameter is a display name for the tenant dial plan. This name must be unique among all tenant dial plans within the 商務用 Skype Server 2015 2015 deployment.

This string can be up to 256 characters long. Valid characters are alphabetic or numeric characters, hyphen (-), dot (.) and parentheses (()).

Tenant

Optional

System.Guid

指定您的商務用 Skype Online 租用戶帳戶的全域唯一識別項 (GUID)。例如︰-Tenant "38aad667-af54-4397-aaa7-e94c79ec2308"。 您可以藉由執行此命令,來尋找租用戶識別碼:Get-CsTenant | Select-Object DisplayName, TenantID

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf parameter describes what would happen if you executed the command, without actually executing the command.

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

參數會保留供 Microsoft 內部使用。

State

Optional

System.String

The State parameter is not used with this cmdlet.

The Set-CsTenantDialPlan cmdlet modifies an existing tenant dial plan. Tenant dial plans provide required information to let Enterprise Voice users make telephone calls. The Conferencing Attendant application also uses tenant dial plans for dial-in conferencing. A tenant dial plan determines such things as which normalization rules are applied, and whether a prefix must be dialed for external calls.

註記注意事項:
Although normalization rules of a tenant dial plan can be added by using this cmdlet, it is recommended that you use the New-CsVoiceNormalizationRule cmdlet instead.
 
顯示: