設定使用者的來電顯示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 Online 中封鎖目前的來電。You can't block incoming calls currently in Skype for Business Online.

您可以變更以下設定:There are settings that you can change:

注意

不適 用於使用 Lync 或商務用 Skype 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. 您可以將通話 ID 號碼變更為任何線上 服務 號碼 (付費或免費付費) 。You can change the Calling ID number to any Online service number (toll or toll-free).

    注意

    如果您想要使用 服務 參數,您必須指定有效的服務號碼。If you want to use the Service parameter, you must specify a valid service number.

  • 封鎖其輸出來電者識別碼 您可以封鎖外寄本機號碼,不會在使用者的出局 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.

  • 封鎖來電者識別碼 您可以封鎖使用者在任何打入的 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).

根據預設,所有的本機號碼設定都是 關閉的。By default, all of these caller ID settings are turned off. 這表示當使用者撥打電話給 PSTN 手機時,可以看到商務用 Skype Online 使用者的電話號碼。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 Online 中的所有本機號碼設定,您必須使用 Windows PowerShell,而且您 無法使用商務用 Skype 系統管理中心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. 若要確認您執行的是版本3.0 或更高版本: [開始] 功能表 > Windows PowerShellTo verify that you are running version 3.0 or higher: Start Menu > Windows PowerShell.

  2. Windows PowerShell視窗中輸入 [取得主機],以檢查版本。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 Online 的 Windows PowerShell 模組,這可讓您建立連線到商務用 Skype Online 的遠端 Windows PowerShell 會話。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. 此模組只受64位電腦支援,可從 適用于商務用 Skype Online 的 Windows PowerShell 模組上的 Microsoft 下載中心下載。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. 從 [開始] 功能表中的 [ > 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 Online 連接器目前是最新團隊 PowerShell 模組的一部分。Skype for Business Online Connector is currently part of the latest Teams PowerShell module. 如果您使用的是最新的 團隊 PowerShell 公開發行,就不需要安裝商務用 Skype 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

  • 若要建立將本機號碼設定為 anonymous 的新本機號碼原則,請執行: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
    

    如需 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"
    

    如需 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

深入了解通話線路識別碼和來電方名稱More about Calling Line ID and Calling Party Name

緊急通話條款及條件Emergency calling terms and conditions

商務用 Skype Online:緊急通話免責聲明標籤Skype for Business Online: Emergency Calling disclaimer label