Set-CsCallingLineIdentity

 

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

Use the Set-CsCallingLineIdentity cmdlet to modify a Caller ID policy in your organization.

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

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

COMMON PARAMETERS: [-BlockIncomingPstnCallerID <$true | $false>] [-CallingIDSubstitute <Anonymous | Service | LineUri>] [-Confirm [<SwitchParameter>]] [-Description <String>] [-EnableUserOverride <$true | $false>] [-Force <SwitchParameter>] [-ServiceNumber <String>] [-Tenant <Guid>] [-WhatIf [<SwitchParameter>]]

The following example blocks the incoming caller ID. The user can override this setting.

Set-CsCallingLineIdentity -Identity "MyBlockingPolicy" -BlockIncomingPstnCallerID $true 

You can either change or block the Caller ID (also called a Calling Line ID) for a user. By default, the 商務用 Skype Online user's phone number can be seen when that user makes a call to a PSTN phone, or when a call comes in. You can modify a Caller ID policy to provide an alternate displayed number, or to block any number from being displayed.

註記注意事項:
  • Identity must be unique.

  • ServiceNumber must be a valid Service Number in the 商務用 Skype Online Telephone Number Inventory.

  • If CallerIdSubstitute is given as “Service”, then ServiceNumber cannot be empty.

 

Parameter Required Type Description

BlockIncomingPstnCallerID

Optional

System.Boolean

The BlockIncomingPstnCallerID switch determines whether to block the incoming Caller ID. The default value is False.

The BlockIncomingPstnCallerID switch is specific to incoming calls from a PSTN caller to a user. If this is set to True and if this policy is assigned to a Lync user, then Caller ID for incoming calls is suppressed/anonymous.

CallingIDSubstitute

Optional

Microsoft.Rtc.Management.Internal.CallingIDSubstituteType

The CallingIDSubstitute parameter lets you specify an alternate Caller ID value. The default value is LineUri.

Confirm

Optional

System.Management.Automation.SwitchParameter

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

Description

Optional

System.String

The Description parameter describes the Caller ID policy.

EnableUserOverride

Optional

System.Boolean

The EnableUserOverride switch lets the user override the Caller ID policy.

Force

Optional

System.Management.Automation.SwitchParameter

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

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

The Identity parameter identifies the Caller ID policy.

Instance

Optional

System.Management.Automation.PSObject

允許您將物件參考傳遞給指令程式,而非設定個別的參數值。

ServiceNumber

Optional

System.String

The ServiceNumber parameter lets you add any valid service number for the CallingIdSubstitute.

Tenant

Optional

System.Guid

PARAMVALUE: Guid

WhatIf

Optional

System.Management.Automation.SwitchParameter

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

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

 
顯示: