为用户设置来电显示Set the Caller ID for a user

Microsoft 365 和 Office 365 中的电话系统提供了一个默认来电显示,即用户分配的电话号码。The Phone System in Microsoft 365 and Office 365 provides a default caller ID that is the user's assigned telephone number. 你可以为用户更改或阻止来电显示(也称为主叫号码)。You can either change or block the caller ID (also called a Calling Line ID) for a user. 通过转到如何 在组织中使用来电显示,您可以了解有关如何在您的组织中使用来电显示的详细信息。You can learn more about how to use caller ID in your organization by going How can caller ID be used in your organization.

提示

不能阻止当前在 Skype for Business Online 中的传入呼叫。You can't block incoming calls currently in Skype for Business Online.

你可以更改以下设置:There are settings that you can change:

备注

[!注释] 这一点 不适用于 使用 Lync 或 Skype for Business Server 的内部部署组织。This is not for on-premises organizations with Lync or Skype for Business Server.

  • 更改其传出来电显示 你可以用其他电话号码替换用户的来电显示(默认情况下,显示的是用户的电话号码)。例如,你可以将用户的来电显示从其电话号码改为企业的主要电话号码,或者将用户的主叫号码从其电话号码改为法律部门的主要电话号码。你可以将来电显示号码改为任何在线 服务 号码(收费或免费)。Change their outgoing caller ID You can replace a user's Caller ID, which by default is their telephone number, with another phone number. For example, you could change the user's Caller ID from their phone number to a main phone number for your business or change the user's Calling Line ID from their phone number to a main phone number for the legal department. You can change the Calling ID number to any Online service number (toll or toll-free).

    备注

    [!注释] 如果要使用 Service 参数,必须指定有效的服务号码。If you want to use the Service parameter, you must specify a valid service number.

  • 阻止其出站呼叫者 ID 你可以阻止传出呼叫者 ID 在用户的传出 PSTN 呼叫上发送。Block their outbound caller ID You can block the outgoing Caller ID from being sent on a user's outgoing PSTN calls. 执行此操作将阻止其电话号码显示在被呼叫者的电话上。Doing this will block their phone number from being displayed on the phone of a person being called.

  • 阻止其来电呼叫者 ID 你可以阻止用户在任何传入 PSTN 呼叫上接收来电显示。Block their incoming caller ID You can block a user from receiving Caller ID on any incoming PSTN calls.

重要

[!重要信息] 紧急呼叫始终发送用户的电话号码(来电显示号码)。Emergency calls will always send the user's telephone number (caller ID).

默认情况下,所有这些来电显示设置都为 关闭 状态。这表示当 Skype for Business Online 用户呼叫某个 PSTN 电话时,将显示该用户的电话号码。By default, all of these caller ID settings are turned off. This means that the Skype for Business Online user's phone number can be seen when that user makes a call to a PSTN phone.

要了解有关这些设置以及如何使用它们的详细信息,请访问如何在你的组织中使用来电显示To learn more about these settings and how you can use them, go How can caller ID be used in your organization.

设置你的来电显示策略设置Set your caller ID policy settings

备注

对于 Skype for Business Online 中的所有来电显示设置,必须使用 Windows PowerShell,并且 不能使用 Skype for business 管理中心For all of the Caller ID settings in Skype for Business Online, you must use Windows PowerShell and you can't use the Skype for Business admin center.

验证并启动 Windows PowerShellVerify and start Windows PowerShell

  • 检查正在运行的是 Windows PowerShell 3.0 版本或更高版本Check that you are running Windows PowerShell version 3.0 or higher
  1. To verify that you are running version 3.0 or higher: Start Menu > Windows PowerShell.To verify that you are running version 3.0 or higher: Start Menu > Windows PowerShell.

  2. 通过在" Windows PowerShell"窗口中键入 Get-Host 来检查版本。Check the version by typing Get-Host in the Windows PowerShell window.

  3. 如果你没有 3.0 版本或更高版本,则需要下载并安装 Windows PowerShell 更新。If you don't have version 3.0 or higher, you need to download and install updates to Windows PowerShell. 请参阅 Windows Management Framework 4.0 以下载 windows PowerShell 并将其更新到版本4.0。See Windows Management Framework 4.0 to download and update Windows PowerShell to version 4.0. 出现提示时,请重启计算机。Restart your computer when you are prompted.

  4. 还需要安装 Skype for Business Online 的 Windows PowerShell 模块,才可创建连接到 Skype for Business Online 的远程 Windows PowerShell 会话。可访问适用于 Skype for Business Online 的 Windows PowerShell 模块,从 Microsoft 下载中心下载此模块,此模块仅在 64 位计算机上受支持。出现提示时,请重启计算机。You will also need to install the Windows PowerShell module for Skype for Business Online that enables you to create a remote Windows PowerShell session that connects to Skype for Business Online. This module, which is supported only on 64-bit computers, can be downloaded from the Microsoft Download Center at Windows PowerShell Module for Skype for Business Online. Restart your computer if you are prompted.

    如果需要了解详细信息,请参阅 在单个 Windows PowerShell 窗口中连接到所有 Microsoft 365 或 Office 365 服务If you need to know more, see Connect to all Microsoft 365 or Office 365 services in a single Windows PowerShell window.

  • 启动 Windows PowerShell 会话Start a Windows PowerShell session
  1. From the Start Menu > Windows PowerShell.From the Start Menu > Windows PowerShell.

  2. 在 " Windows PowerShell " 窗口中,通过运行以下内容连接到 Microsoft 365 或 Office 365:In the Windows PowerShell window, connect to your Microsoft 365 or Office 365 by running:

    备注

    Skype for Business Online 连接器目前是最新团队 PowerShell 模块的一部分。Skype for Business Online Connector is currently part of the latest Teams PowerShell module. 如果您使用的是最新的 团队 PowerShell 公共版本,则无需安装 Skype For Business Online 连接器。If you're using the latest Teams PowerShell public release, you don't need to install the Skype for Business Online Connector.

     Import-Module -Name MicrosoftTeams
     $credential = Get-Credential
     $session = New-CsOnlineSession -Credential $credential
     Import-PSSession $session
    

如果需要有关启动 Windows PowerShell 的详细信息,请参阅 在单个 Windows powershell 窗口中连接到所有 Microsoft 365 或 Office 365 服务设置适用于 windows powershell 的计算机If you want more information about starting Windows PowerShell, see Connect to all Microsoft 365 or Office 365 services in a single Windows PowerShell window or Set up your computer for Windows PowerShell.

查看你组织中的所有来电显示策略设置See all of the caller ID policy settings in your organization

  • 若要查看组织中的所有来电显示策略设置,请运行:To view all of the caller ID policy settings in your organization, run:

    Get-CsCallingLineIdentity |fl
    

    有关 CsCallingLineIdentity 的详细信息,请参阅 获取更多示例和详细信息。See more examples and details for Get-CsCallingLineIdentity.

为你的组织创建新的来电显示策略Create a new caller ID policy for your organization

  • 若要创建将呼叫方 ID 设置为匿名的新来电显示策略,请运行:To create a new caller ID policy that sets the caller ID to anonymous, run:

    New-CsCallingLineIdentity  -Identity Anonymous -Description "Anonymous policy" -CallingIDSubstitute Anonymous -EnableUserOverride $false
    

    备注

    在所有情况下,在"服务号码"字段不应包含初始"+"。In all cases, the "Service Number" field should not include an initial "+".

    有关详细信息,请参阅 CsCallingLineIdentity的更多示例和详细信息。See more examples and details for New-CsCallingLineIdentity.

  • 若要将您创建的新策略应用于 Amos 大理石,请运行:To apply the new policy you created to Amos Marble, run:

    Grant-CsCallingLineIdentity -Identity "amos.marble@contoso.com" -PolicyName Anonymous
    

    请参阅有关 Grant-CsCallingLineIdentity cmdlet 的更多信息。See more on the Grant-CsCallingLineIdentity cmdlet.

如果你已创建策略,你可以使用 CsCallingLineIdentity cmdlet 对现有策略进行更改,然后使用 CsCallingLineIdentity cmdlet 将设置应用到你的用户。If you have already created a policy, you can use the Set-CsCallingLineIdentity cmdlet to make changes to the existing policy, and then use the Grant-CsCallingLineIdentity cmdlet to apply the settings to your users.

对其进行设置以阻止传入来电显示Set it so the incoming caller ID is blocked

  • 要阻止传入来电显示,请运行:To block the incoming caller ID, run:

    Set-CsCallingLineIdentity  -Identity "Block Incoming" -BlockIncomingPstnCallerID $true -EnableUserOverride $true
    

    请参阅 CsCallingLineIdentity的更多示例和详细信息。See more examples and details for Set-CsCallingLineIdentity.

  • 若要将您创建的策略设置应用于您的组织中的用户,请运行:To apply the policy setting you created to a user in your organization, run:

    Grant-CsCallingLineIdentity -Identity "amos.marble@contoso.com" -PolicyName "Block Incoming"
    

    请参阅有关 Grant-CsCallingLineIdentity cmdlet 的更多信息。See more on the Grant-CsCallingLineIdentity cmdlet.

删除来电显示策略Remove a caller ID policy

要删除组织的策略,请运行:To remove a policy from your organization, run:

Remove-CsCallingLineIdentity -Identity "My Caller ID Policy"

要删除用户的策略,请运行:To remove a policy from a user, run:

Grant-CsCallingLineIdentity -Identity "amos.marble@contoso.com" -PolicyName $null

想要了解有关 Windows PowerShell 的详细信息?Want to know more about Windows PowerShell?

关于转移电话号码的常见问题Transferring phone numbers common questions

用于通话套餐的不同类型的电话号码Different kinds of phone numbers used for Calling Plans

管理你的组织的电话号码Manage phone numbers for your organization

更多关于呼叫线路 ID 和主叫方名称的信息More about Calling Line ID and Calling Party Name

紧急呼叫条款和条件Emergency calling terms and conditions

Skype for Business Online:紧急呼叫免责声明标签Skype for Business Online: Emergency Calling disclaimer label