指派團隊附加元件授權給使用者Assign Teams add-on licenses to users

附加元件授權是特定團隊功能(例如音訊會議、電話系統和通話方案)的授權。Add-on licenses are licenses for specific Teams features such as Audio Conferencing, Phone System, and Calling Plans. 本文說明如何將附加元件授權指派給個別使用者,以及大量使用者。This article describes how to assign add-on licenses to individual users and to large sets of users in bulk.

注意

請參閱 小組附加元件授權 ,瞭解適用于附加元件授權的小組功能。See Teams add-on licensing for Teams features that are available with add-on licenses. 您也可以找到您需要購買哪些授權,以及如何購買這些授權的相關資訊 (取決於您的方案) ,讓使用者可以取得音訊會議、免付費電話號碼,以及撥打貴組織以外的電話號碼的功能。You'll also find information about what licenses you need to buy and how to buy them (depending on your plan), so users can get features such as Audio Conferencing, toll-free numbers, and the ability to call phone numbers outside your organization. 在您決定要為使用者提供哪些功能之後,請將授權指派給他們。After you decide which features you want for your users, assign the licenses to them.

您可以使用 Microsoft 365 系統管理中心或 PowerShell,指派授權給貴組織中的使用者。You can use the Microsoft 365 admin center or PowerShell to assign licenses to users in your organization. 您必須是全域系統管理員或使用者管理系統管理員,才能管理授權。You must be a Global admin or User management admin to manage licenses.

指派電話系統、通話方案和通訊信用授權前需要注意的事項What you need to know before you assign Phone System, Calling Plan, and Communication Credits licenses

在您開始之前,請先檢查下列專案:Before you get started, review the following:

  • 如果您使用的是內部部署的公用交換電話網絡 (PSTN) 連線至混合式使用者,您只需要指派電話系統授權。If you're using on-premises Public Switched Telephone Network (PSTN) connectivity for hybrid users, you only need to assign a Phone System license. 請勿指派通話方案授權。Do NOT assign a Calling Plan license.

  • 由於 Microsoft 365 與 Microsoft 團隊之間的延遲,在指派授權之後,可能需要長達24小時的時間指派通話方案。Because of the latency between Microsoft 365 and Microsoft Teams, it can take up to 24 hours for a user to be assigned a Calling Plan after you assign a license. 如果使用者在24小時後未獲指派通話方案, 請聯絡商務產品支援-系統管理協助If the user isn't assigned a Calling Plan after 24 hours, contact support for business products - admin help.

  • 如果您還沒有購買正確數量的授權,您會收到錯誤訊息。You'll get an error message if you haven't purchased the correct number of licenses. 如果您需要購買更多通話方案授權,請選擇購買更多的選項。If you need to buy more Calling Plan licenses, choose the option to buy more.

  • 即使您的使用者已獲指派企業版 E5 授權,但如果他們想要從 PSTN 撥打或接聽電話,仍需將 通訊信用 權指派給他們。Even if your users are assigned Enterprise E5 licenses, you still need to assign Communications Credits licenses to them if they want make or receive calls from the PSTN.

  • 在您將通話方案或通訊信用授權指派給使用者之後,您必須取得貴組織的電話號碼,然後將這些號碼指派給使用者。After you assign Calling Plan or Communication Credits licenses to your users, you'll need to get phone numbers for your organization, and then assign those numbers to users. 如需逐步指示,請參閱 設定通話方案For step-by-step instructions, see Set up Calling Plans.

使用 Microsoft 365 系統管理中心Using the Microsoft 365 admin center

使用 Microsoft 365 系統管理中心,一次將授權指派給個別的使用者或一組小的使用者。Use the Microsoft 365 admin center to assign licenses to individual users or small sets of users at a time. 您可以在 [ 授權 ] 頁面上指派授權, (一次最多20個使用者) 或 [作用中的 使用者 ] 頁面。You can assign licenses on the Licenses page (for up to 20 users at a time) or the Active users page. 您選擇的方法取決於您是否要管理特定使用者的產品授權,或管理特定產品的使用者授權。The method you choose depends on whether you want to manage product licenses for specific users or manage user licenses for specific products.

如需逐步指示,請參閱 指派授權給使用者For step-by-step instructions, see Assign licenses to users.

如果您需要指派大量使用者(例如幾百或數千個使用者)的授權,請 在 Azure Active Directory 中使用 Powershell 或群組式授權 (AZURE AD) If you need to assign licenses for a large number of users, such as hundreds or thousands of users, use Powershell or group-based licensing in Azure Active Directory (Azure AD).

使用 PowerShellUsing PowerShell

使用 PowerShell 來大量指派授權給使用者。Use PowerShell to assign licenses to users in bulk. 若要深入瞭解,請參閱 使用 PowerShell 指派授權給使用者帳戶To learn more, see Assign licenses to user accounts with PowerShell.

範例腳本Example script

以下範例說明如何使用腳本來指派授權給您的使用者。Here's an example of how to use a script to assign licenses to your users.

  1. 安裝 適用于 IT 專業人員的64位版本的 Microsoft Online Services 登入小幫手 RTW。Install the 64-bit version of the Microsoft Online Services Sign-in Assistant for IT Professionals RTW.

  2. 安裝適用于 Windows PowerShell 的 Microsoft Azure Active Directory 模組:Install the Microsoft Azure Active Directory Module for Windows PowerShell:

    1. 開啟提升許可權的 Windows PowerShell 命令提示字元 (以系統管理員身分執行 Windows PowerShell) 。Open an elevated Windows PowerShell command prompt (run Windows PowerShell as an admin).
    2. 執行下列命令:Run the following command:
      Install-Module MSOnline
      
    3. 如果系統提示您安裝 NuGet 提供者,請輸入 Y,然後按 enter。If you're prompted to install the NuGet provider, type Y, and then press Enter.
    4. 如果系統提示您從 PSGallery 安裝模組,請輸入 Y,然後按 enter。If you're prompted to install the module from PSGallery, type Y, and then press Enter.
  3. 在 Windows PowerShell 命令提示字元中,執行下列腳本來指派授權給您的使用者,其中 <CompanyName:License> 是您的組織名稱,以及您要指派之授權的識別碼。At the Windows PowerShell command prompt, run the following script to assign licenses to your users, where <CompanyName:License> is your organization name and the identifier for the license that you want to assign. 例如,litwareinc: MCOMEETADV。For example, litwareinc:MCOMEETADV.

    識別碼與授權的易記名稱不同。The identifier is different than the friendly name of the license. 例如,音訊會議的識別碼是 MCOMEETADV。For example, the identifier for Audio Conferencing is MCOMEETADV. 若要深入瞭解,請參閱 授權的產品名稱和 SKU 識別碼To learn more, see Product names and SKU identifiers for licensing.

    #Create a text file with a single column that lists the user principal names (UPNs) of users to assign licenses to. The MSOL service uses the UPN to license user accounts.
    #Example of text file:''
    #user1@domain.com
    #user2@domain.com
    
    #Import Module
    ipmo MSOnline
    
    #Authenticate to MSOLservice
    Connect-MSOLService
    #File prompt to select the userlist txt file
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
      $OFD = New-Object System.Windows.Forms.OpenFileDialog
      $OFD.filter = "text files (*.*)| *.txt"
      $OFD.ShowDialog() | Out-Null
      $OFD.filename
    
    If ($OFD.filename -eq '')
    {
    Write-Host "You did not choose a file. Try again" -ForegroundColor White -BackgroundColor Red
    }
    
    #Create a variable of all users
    $users = Get-Content $OFD.filename
    
    #License each user in the $users variable
    foreach ($user in $users)
        {
        Write-host "Assigning License: $user"
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "litwareinc:<CompanyName:License>" -ErrorAction SilentlyContinue
        Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "litwareinc:<CompanyName:License>" -ErrorAction SilentlyContinue
        }
    

    例如,若要指派 Microsoft 365 企業版1和音訊會議授權,請在腳本中使用下列語法:For example, to assign Microsoft 365 Enterprise 1 and Audio Conferencing licenses, use the following syntax in the script:

    Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "litwareinc:ENTERPRISEPACK" -ErrorAction SilentlyContinue
    Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "litwareinc:MCOMEETADV" -ErrorAction SilentlyContinue
    

    若要將 Microsoft 商務語音 (指派給不需通話方案) 授權,請在腳本中使用下列語法:To assign a Microsoft Business Voice (without Calling Plan) license, use the following syntax in the script:

    Set-MsolUserLicense -UserPrincipalName $user -AddLicenses "litwareinc:BUSINESS_VOICE_DIRECTROUTING" -ErrorAction SilentlyContinue
    

授權的產品名稱和 SKU 識別碼Product names and SKU identifiers for licensing

以下是產品名稱的部分清單及其對應的 SKU 元件名稱,當您使用 PowerShell 管理團隊中的授權時,您可以使用這些名稱作為參考。Here's a partial list of product names and their corresponding SKU part names that you can use as a reference when you use PowerShell to manage licenses in Teams.

若要深入瞭解,請參閱 使用 PowerShell產品名稱和服務方案識別碼來查看授權及服務,以取得授權教育 SKU 參考To learn more, see View licenses and services with PowerShell, Product names and service plan identifiers for licensing, and Education SKU reference.

產品名稱Product name SKU 元件名稱SKU part name
Microsoft 企業版 E5 (與電話系統) Microsoft Enterprise E5 (with Phone System) ENTERPRISEPREMIUMENTERPRISEPREMIUM
沒有音訊會議的 Microsoft 企業版 E5 () Microsoft Enterprise E5 (without Audio Conferencing) ENTERPRISEPREMIUM_NOPSTNCONFENTERPRISEPREMIUM_NOPSTNCONF
使用音訊會議的 Microsoft 企業版 E5 () Microsoft Enterprise E5 (with Audio Conferencing) ENTERPRISEPREMIUMENTERPRISEPREMIUM
Microsoft 企業版 E3Microsoft Enterprise E3 ENTERPRISEPACKENTERPRISEPACK
Microsoft 企業版 E1Microsoft Enterprise E1 STANDARDPACKSTANDARDPACK
Microsoft 365 商務基本版Microsoft 365 Business Basic O365_BUSINESS_ESSENTIALSO365_BUSINESS_ESSENTIALS
Microsoft 365 商務標準版Microsoft 365 Business Standard O365_BUSINESS_PREMIUMO365_BUSINESS_PREMIUM
Microsoft 365 商務版Microsoft 365 Business SPBSPB
Microsoft 商務語音 (加拿大) Microsoft Business Voice (Canada) BUSINESS_VOICE_MEDBUSINESS_VOICE_MED
Microsoft 商務語音 (英國) Microsoft Business Voice (United Kingdom) BUSINESS_VOICEBUSINESS_VOICE
Microsoft 商務語音 (美國) Microsoft Business Voice (United States) BUSINESS_VOICE_MED2BUSINESS_VOICE_MED2
不需通話方案的 Microsoft 商務語音 () Microsoft Business Voice (without Calling Plan) BUSINESS_VOICE_DIRECTROUTINGBUSINESS_VOICE_DIRECTROUTING
Microsoft 商務語音 (不需美國電話方案) Microsoft Business Voice (without Calling Plan) for the United States BUSINESS_VOICE_DIRECTROUTING _MEDBUSINESS_VOICE_DIRECTROUTING _MED
音訊會議Audio Conferencing MCOMEETADVMCOMEETADV
語音會議每分鐘付款 (按您的方式付費) Audio Conferencing Pay Per Minute (pay as you go)
需要設定並啟用通訊信用額度。Requires Communications Credits to be set up and enabled.
MCOMEETACPEAMCOMEETACPEA
電話系統Phone System MCOEVMCOEV
國內和國際通話方案Domestic and International Calling Plan MCOPSTN2MCOPSTN2
國內通話方案在每個使用者/每個月) 1200 的每個使用者/每個月份撥打3000分鐘 (Domestic Calling Plan (3000 minutes per user/month for US/PR/CA, 1200 minutes per user/month for EU countries) MCOPSTN1MCOPSTN1
國內通話方案針對每個國家/地區的每個使用者/月份 (120 分鐘) Domestic Calling Plan (120 minutes per user/month for each country)
美國未提供此方案。This plan isn't available in the United States.
MCOPSTN5MCOPSTN5
國內通話方案針對每個國家/地區的每個使用者/月份 (240 分鐘) Domestic Calling Plan (240 minutes per user/month for each country)
美國未提供此方案。This plan isn't available in the United States.
MCOPSTN6MCOPSTN6
通訊點數Communications Credits MCOPSTNPPMCOPSTNPP