Set-CsCallingLineIdentity

 

Topic Last Modified: 2017-02-23

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>][-WhatIf [<SwitchParameter>]]

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

Set-CsCallingLineIdentity -Tenant "cd56c991-c105-4bfe-9255-dc4427fbaf41" -BlockIncomingPstnCallerID $true 

You can either change or block the Caller ID (also called a Calling Line ID) for a user. By default, the Skype for Business 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.

NoteNote:
  • Identity must be unique.

  • ServiceNumber must be a valid Service Number in the Skype for Business 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

The Confirm switch causes the command to pause processing, and requires confirmation to proceed.

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

The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

The Identity parameter identifies the Caller ID policy.

Instance

Optional

System.Management.Automation.PSObject

Allows you to pass a reference to an object to the cmdlet rather than set individual parameter values.

ServiceNumber

Optional

System.String

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

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch causes the command to simulate its results. By using this switch, you can view what changes would occur without having to commit those changes.

 
Show: