使用 Exchange Online 部署 Microsoft 團隊聊天室Deploy Microsoft Teams Rooms with Exchange Online

請閱讀本主題,瞭解如何使用 Exchange Online 和商務用 Skype Server 內部部署來部署 Microsoft 團隊聊天室。Read this topic for information on how to deploy Microsoft Teams Rooms with Exchange Online and Skype for Business Server on-premises.

如果您的組織有混合服務、部分裝載于內部部署和部分託管的網路,則您的設定將取決於託管每個服務的位置。If your organization has a mix of services, with some hosted on premises and some hosted online, then your configuration will depend on where each service is hosted. 本主題涵蓋 Microsoft 團隊聊天室的混合式部署,以及 Exchange 託管在線上。This topic covers hybrid deployments for Microsoft Teams Rooms with Exchange hosted online. 因為這種類型的部署有這麼多不同的變化,所以不可能提供所有專案的詳細指示。Because there are so many different variations in this type of deployment, it's not possible to provide detailed instructions for all of them. 下列處理常式適用于許多設定。The following process will work for many configurations. 如果程式不適合您的設定,建議您使用 Windows PowerShell 來取得與其他部署選項相同的最終結果。If the process isn't right for your setup, we recommend that you use Windows PowerShell to achieve the same end result as documented here, and for other deployment options.

設定使用者帳戶最簡單的方法,就是使用遠端 Windows PowerShell 進行設定。The easiest way to set up user accounts is to configure them using remote Windows PowerShell. Microsoft 提供 SkypeRoomProvisioningScript.ps1、可協助您建立新使用者帳戶的腳本,或驗證現有的資源帳戶,以協助您將它們轉換成相容的 Microsoft 團隊聊天室使用者帳戶。Microsoft provides SkypeRoomProvisioningScript.ps1, a script that will help create new user accounts, or validate existing resource accounts you have in order to help you turn them into compatible Microsoft Teams Rooms user accounts. 如果您想要的話,您可以依照下列步驟來設定您的 Microsoft 團隊聊天室裝置將會使用的帳戶。If you prefer, you can follow the steps below to configure accounts your Microsoft Teams Rooms device will use.

需求Requirements

在使用 Exchange Online 部署 Microsoft 團隊聊天室之前,請確定您已滿足需求。Before you deploy Microsoft Teams Rooms with Exchange Online, be sure you have met the requirements. 如需詳細資訊,請參閱 Microsoft 團隊會議室需求For more information, see Microsoft Teams Rooms requirements.

若要使用 Exchange Online 部署 Microsoft 團隊聊天室,請遵循下列步驟。To deploy Microsoft Teams Rooms with Exchange Online, follow the steps below. 請確定您有正確的許可權來執行相關的 Cmdlet。Be sure you have the right permissions to run the associated cmdlets.

注意

此區段中 適用于 Windows PowerShell Cmdlet 的 Azure Active Directory 模組 (範例中,已在設定 Microsoft 團隊聊天室裝置的帳戶中測試 MsolUser) 。The Azure Active Directory Module for Windows PowerShell cmdlets in this section (for example, Set-MsolUser) have been tested in setting up accounts for Microsoft Teams Rooms devices. 但其他 Cmdlet 可能可以運作,但在這種特定情況下並未經過測試。It's possible that other cmdlets may work, however, they haven't been tested in this specific scenario.

如果您已部署 Active Directory Federation Services (AD FS) ,您可能必須先將使用者帳戶轉換為受管理的使用者,然後才能執行這些步驟,然後在完成這些步驟之後,再將使用者轉換回聯盟使用者。If you deployed Active Directory Federation Services (AD FS), you may have to convert the user account to a managed user before you follow these steps, and then convert the user back to a federated user after you complete these steps.

建立帳戶並設定 Exchange 屬性Create an account and set Exchange properties

  1. 在 PC 上啟動遠端 Windows PowerShell 會話,並聯機至 Exchange Online,如下所示:Start a remote Windows PowerShell session on a PC and connect to Exchange Online as follows:

    Set-ExecutionPolicy Unrestricted
    $org = 'contoso.microsoft.com'
    $cred = Get-Credential $admin@$org
    $sess = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
    Import-PSSession $sess -DisableNameChecking
    
  2. 建立會話之後,您可以建立新的信箱並將其設為 RoomMailboxAccount,或變更現有會議室信箱的設定。After establishing a session, you'll either create a new mailbox and enable it as a RoomMailboxAccount, or change the settings for an existing room mailbox. 這可讓帳戶在 Microsoft 團隊聊天室中進行驗證。This will allow the account to authenticate into Microsoft Teams Rooms.

    如果您要變更現有的資源信箱:If you're changing an existing resource mailbox:

    Set-Mailbox -Identity 'PROJECT01' -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
    

    如果您要建立新的資源信箱:If you're creating a new resource mailbox:

    New-Mailbox -MicrosoftOnlineServicesID 'PROJECT01@contoso.com' -Alias PROJECT01 -Name "Project--01" -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
    
  3. 若要改善會議體驗,您必須在使用者帳戶上設定 Exchange 屬性,如下所示:To improve the meeting experience, you'll need to set the Exchange properties on the user account as follows:

    Set-CalendarProcessing -Identity 'PROJECT01@contoso.com' -AutomateProcessing AutoAccept -AddOrganizerToSubject $false -AllowConflicts $false -DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false
    Set-CalendarProcessing -Identity 'PROJECT01@contoso.com' -AddAdditionalResponse $true -AdditionalResponse "This is a Skype Meeting room!"
    

新增內部部署網域帳戶的電子郵件地址Add an email address for your on-premises domain account

  1. Active Directory 使用者和電腦廣告 工具中,以滑鼠右鍵按一下您的 Microsoft 小組會議室帳戶將會在其中建立的容器或組織單位,按一下 [ 新增],然後按一下 [ 使用者]。In Active Directory Users and Computers AD tool, right-click on the container or Organizational Unit that your Microsoft Teams Rooms accounts will be created in, click New, and then click User.

  2. 在 [ 完整名稱 ] 方塊中輸入 [顯示名稱] ( 身分識別 ) ,然後在 [ 使用者登入名稱 ] 方塊中輸入別名 ([信箱] 或 [新增信箱) ]。Type the display name (- Identity ) from the prior cmdlet (Set-Mailbox or New-Mailbox) into the Full name box, and the alias into the User logon name box. 按一下 [下一步]Click Next.

  3. 輸入此帳戶的密碼。Type the password for this account. 您必須重新輸入,才能進行驗證。You'll need to retype it for verification. 確認 [ 密碼永不過期 ] 核取方塊是唯一選取的選項。Make sure the Password never expires checkbox is the only option selected.

    注意

    選取 [ 密碼永不過期 ] 是 Microsoft 團隊聊天室的商務用 Skype 伺服器需求。Selecting Password never expires is a requirement for Skype for Business Server on Microsoft Teams Rooms. 您的網域規則可能會禁止沒有過期的密碼。Your domain rules may prohibit passwords that don't expire. 如果是這樣,您將需要針對每個 Microsoft 團隊聊天室使用者帳戶建立例外狀況。If so, you'll need to create an exception for each Microsoft Teams Rooms user account.

  4. 按一下 [完成] 來建立帳戶。Click Finish to create the account.

  5. 在您建立帳戶之後,請執行目錄同步處理。After you have created the account, run a directory synchronization. 這可以透過在 PowerShell 中使用 Set MsolDirSyncConfiguration 來完成。This can be accomplished by using Set-MsolDirSyncConfiguration in PowerShell. 完成後,請移至 [使用者] 頁面,確認先前步驟中建立的兩個帳戶已合併。When that is complete, go to the users page and verify that the two accounts created in the previous steps have merged.

指派 Microsoft 365 或 Office 365 授權Assign a Microsoft 365 or Office 365 license

  1. 首先,連線到 Azure AD 來套用某些帳戶設定。First, connect to Azure AD to apply some account settings. 您可以執行此 Cmdlet 來進行連線。You can run this cmdlet to connect. 如需 Active Directory 的詳細資料,請參閱 Azure ActiveDirectory (import-module msonline) 1.0For details about Active Directory, see Azure ActiveDirectory (MSOnline) 1.0.

    Connect-MsolService -Credential $cred
    
  1. 使用者帳戶必須擁有有效的 Microsoft 365 或 Office 365 授權,才能確保 Exchange 和商務用 Skype 伺服器能夠正常運作。The user account needs to have a valid Microsoft 365 or Office 365 license to ensure that Exchange and Skype for Business Server will work. 如果您有授權,您必須將使用位置指派給您的使用者帳戶,這會決定您的帳戶可使用哪些授權 Sku。If you have the license, you need to assign a usage location to your user account—this determines what license SKUs are available for your account. 您將會在下列步驟中進行作業。You'll make the assignment in a following step.

  2. 接下來,使用 Get-MsolAccountSkuNext, use Get-MsolAccountSku 若要為您的 Microsoft 365 或 Office 365 組織取得可用的 Sku 清單。to retrieve a list of available SKUs for your Microsoft 365 or Office 365 organization.

  3. 當您列出 Sku 之後,您就可以使用 Set-MsolUserLicenseOnce you list out the SKUs, you can add a license using the Set-MsolUserLicense Cmdlet.cmdlet. 在此案例中,$strLicense 是您所看到的 SKU 程式碼 (例如 contoso: STANDARDPACK) 。In this case, $strLicense is the SKU code that you see (for example, contoso:STANDARDPACK).

    Set-MsolUser -UserPrincipalName 'PROJECT01@contoso.com' -UsageLocation 'US'
     Get-MsolAccountSku
     Set-MsolUserLicense -UserPrincipalName 'PROJECT01@contoso.com' -AddLicenses $strLicense
    

使用商務用 Skype Server 啟用使用者帳戶Enable the user account with Skype for Business Server

  1. 從電腦建立遠端 Windows PowerShell 會話,如下所示:Create a remote Windows PowerShell session from a PC as follows:

注意

商務用 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.

``` Powershell
Import-Module -Name MicrosoftTeams
$cred = Get-Credential
$cssess = New-CsOnlineSession -Credential $cred  
Import-PSSession $cssess -AllowClobber
```
  1. 若要啟用商務用 Skype Server 的 Microsoft 團隊房間帳戶,請執行此命令:To enable your Microsoft Teams Rooms account for Skype for Business Server, run this command:

    Enable-CsMeetingRoom -Identity $rm -RegistrarPool 'sippoolbl20a04.infra.lync.com' -SipAddressType EmailAddress
    

    如果您不確定要在您的環境中使用 RegistrarPool 參數的值,您可以使用此命令從現有的商務用 Skype Server 使用者取得該值If you aren't sure what value to use for the RegistrarPool parameter in your environment, you can get the value from an existing Skype for Business Server user using this command

    Get-CsUser -Identity 'alice@contoso.com'| fl *registrarpool*
    

將商務用 Skype Server 授權指派給您的 Microsoft 團隊聊天室帳戶Assign a Skype for Business Server license to your Microsoft Teams Rooms account

  1. 以租使用者管理員身分登入,開啟 Microsoft 365 系統管理中心,然後按一下 [管理] 應用程式。Log in as a tenant administrator, open the Microsoft 365 admin center, and click on the Admin app.
  2. 按一下 [ 使用者和群組 ],然後按一下 [ 新增使用者、重設密碼等等]。Click on Users and Groups and then click Add users, reset passwords, and more.
  3. 按一下 [Microsoft 團隊聊天室] 帳戶,然後按一下手寫筆圖示,即可編輯帳戶資訊。Click the Microsoft Teams Rooms account, and then click the pen icon to edit the account information.
  4. 按一下 [ 授權]。Click Licenses.
  5. 在 [ 指派授權] 中,選取 [商務用 Skype (方案 2]) 或 [商務用 skype] (方案 3) ,視您的授權和企業語音需求而定。In Assign licenses, select Skype for Business (Plan 2) or Skype for Business (Plan 3), depending on your licensing and Enterprise Voice requirements. 如果您想要在 Microsoft 團隊聊天室使用企業語音,就必須使用 [方案3授權]。You'll have to use a Plan 3 license if you want to use Enterprise Voice on Microsoft Teams Rooms.
  6. 按一下 [儲存]。Click Save.

針對驗證,您應該能夠使用任何商務用 Skype 用戶端登入此帳戶。For validation, you should be able to use any Skype for Business client to log in to this account.

注意

如果您目前使用的是 E1、E3、E4 或 E5 Sku,且使用商務用 Skype 方案2搭配音訊會議或使用電話系統方案,則這些將會繼續運作。If you're currently using E1, E3, E4, or E5 SKUs with Skype for Business Plan 2 with Audio Conferencing or with Phone System and a Calling Plan, these will continue to work. 不過,在目前的授權到期後,您應該考慮移至 [ 團隊會議室授權更新] 中所述的更簡單的授權模型。However, you should consider moving to a simpler licensing model as described in Teams Meeting Room Licensing Update, after current licenses expire.

重要

如果您使用的是商務用 Skype 方案2,您只能在 [僅限商務用 skype] 模式中使用 Microsoft 團隊聊天室,這表示您所有的會議都將是商務用 Skype 會議。If you're using Skype for Business Plan 2, you can only use the Microsoft Teams Rooms in Skype for Business Only mode, meaning all of your meetings will be Skype for Business meetings. 若要為 Microsoft 團隊會議啟用會議室,我們建議您購買會議室授權。In order to enable your meeting room for Microsoft Teams meetings, we recommend you purchase the Meeting Room license.

設定 Microsoft 團隊聊天室的帳戶Configure accounts for Microsoft Teams Rooms

規劃 Microsoft Teams 會議室Plan for Microsoft Teams Rooms

部署 Microsoft Teams 會議室Deploy Microsoft Teams Rooms

設定 Microsoft Teams 會議室主控台Configure a Microsoft Teams Rooms console

管理 Microsoft Teams 會議室Manage Microsoft Teams Rooms