使用 Exchange Online 部署 Microsoft Teams RoomsDeploy Microsoft Teams Rooms with Exchange Online

阅读本主题,了解如何在本地通过 Exchange Online 和 Skype for business 服务器部署 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.


在使用 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 联合身份验证服务部署 (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. 在电脑上启动远程 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 For business 服务器的要求。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 中使用 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 for business 服务器能够正常工作。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'
     Set-MsolUserLicense -UserPrincipalName 'PROJECT01@contoso.com' -AddLicenses $strLicense

使用 Skype for Business 服务器启用用户帐户Enable the user account with Skype for Business Server

  1. 从电脑创建远程 Windows PowerShell 会话,如下所示:Create a remote Windows PowerShell session from a PC as follows:


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.

``` Powershell
Import-Module -Name MicrosoftTeams
$cred = Get-Credential
$cssess = New-CsOnlineSession -Credential $cred  
Import-PSSession $cssess -AllowClobber
  1. 若要为 Skype for business 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 for Business 服务器用户获取该值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 for Business 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 for Business(计划 2)或 Skype for Business(计划 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 Business 客户端登录到此帐户。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 for business 计划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 for Business 计划2,则只能在 Skype for business 模式下使用 Microsoft 团队聊天室,这意味着你的所有会议都将是 Skype for business 会议。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