使用商務用 Skype Server 部署 Microsoft 團隊聊天室Deploy Microsoft Teams Rooms with Skype for Business Server

本主題說明當您有單一林內部部署時,如何為 Microsoft 團隊聊天室新增裝置帳戶。This topic explains how you add a device account for Microsoft Teams Rooms when you have a single-forest, on-premises deployment.

如果您有單一林、內部部署與 Exchange 2013 SP1 或更新版本,以及商務用 Skype Server 2015 或更新版本,則您可以使用隨附的 Windows PowerShell 腳本來建立裝置帳戶。If you have a single-forest, on-premises deployment with Exchange 2013 SP1 or later and Skype for Business Server 2015 or later, then you can use the provided Windows PowerShell scripts to create device accounts. 如果您使用的是多目錄林部署,您可以使用對等的 Cmdlet 來產生相同的結果。If you're using a multi-forest deployment, you can use equivalent cmdlets that will produce the same results. 本節將說明這些 Cmdlet。Those cmdlets are described in this section.

開始部署 Microsoft 團隊聊天室之前,請確定您具備適當的許可權來執行相關的 Cmdlet。Before you begin to deploy Microsoft Teams Rooms, be sure you have the right permissions to run the associated cmdlets.

Set-ExecutionPolicy Unrestricted
$org='contoso.com'
$cred=Get-Credential $admin@$org
$sessExchange = New-PSSession -ConfigurationName microsoft.exchange -Credential $cred -AllowRedirection -Authentication Kerberos -ConnectionUri
"http://$strExchangeServer/powershell" -WarningAction SilentlyContinue
$sessLync = New-PSSession -Credential $cred -ConnectionURI "https://$strLyncFQDN/OcsPowershell" -AllowRedirection -WarningAction SilentlyContinue
Import-PSSession $sessExchange
Import-PSSession $sessLync

請注意,$strExchangeServer 是 Exchange 伺服器 (FQDN) 的完整功能變數名稱,而 $strLyncFQDN 是商務用 Skype Server 部署的 FQDN。Note that $strExchangeServer is the fully qualified domain name (FQDN) of your Exchange server, and $strLyncFQDN is the FQDN of your Skype for Business Server deployment.

  1. 建立會話之後,您可以建立新的信箱並將其設為 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 to Microsoft Teams Rooms.

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

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

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

    New-Mailbox -UserPrincipalName PROJECTRIGEL01@contoso.com -Alias PROJECTRIGEL01 -Name "Project-Rigel-01" -Room
    -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
    
  2. 您可以在裝置帳戶上設定各種 Exchange 屬性來改善人員的會議體驗。You can set various Exchange properties on the device account to improve the meeting experience for people. 您可以在 [Exchange 屬性] 區段中查看需要設定哪些屬性。You can see which properties need to be set in the Exchange properties section.

    Set-CalendarProcessing -Identity $acctUpn -AutomateProcessing AutoAccept -AddOrganizerToSubject $false -AllowConflicts $false -DeleteComments
    $false -DeleteSubject $false -RemovePrivateProperty $false
    Set-CalendarProcessing -Identity $acctUpn -AddAdditionalResponse $true -AdditionalResponse "This is a Skype Meeting room!"
    
  3. 如果您決定將密碼不要到期,您也可以使用 Windows PowerShell Cmdlet 來設定密碼。If you decide to have the password not expire, you can set that with Windows PowerShell cmdlets too. 如需詳細資訊,請參閱密碼管理。See Password management for more information.

    Set-AdUser $acctUpn -PasswordNeverExpires $true
    
  4. 在 Active Directory 中啟用帳戶,以便將其驗證至 Microsoft 團隊聊天室。Enable the account in Active Directory so it will authenticate to Microsoft Teams Rooms.

    Set-AdUser $acctUpn -Enabled $true
    
  5. 在商務用 Skype 伺服器池中啟用 Microsoft 團隊聊天室 Active Directory 帳戶,以啟用商務用 Skype Server 的裝置帳戶:Enable the device account with Skype for Business Server by enabling your Microsoft Teams Rooms Active Directory account on a Skype for Business Server pool:

    Enable-CsMeetingRoom -SipAddress sip:PROJECTRIGEL01@contoso.com -DomainController DC-ND-001.contoso.com
    -RegistrarPool LYNCPool15.contoso.com -Identity PROJECTRIGEL01
    

    您必須使用會話初始通訊協定 (該專案的 SIP) 位址和網網域控制站You'll need to use the Session Initiation Protocol (SIP) address and domain controller for the Project

  6. 可選.Optional. 您也可以透過針對您的帳戶啟用企業語音,來允許 Microsoft 團隊聊天室撥打及接收公用交換電話網絡 (PSTN) 電話。You can also allow Microsoft Teams Rooms to make and receive public switched telephone network (PSTN) phone calls by enabling Enterprise Voice for your account. 企業語音並非 Microsoft 團隊聊天室的需求,但如果您想要使用 Microsoft 團隊聊天室用戶端的 PSTN 撥號功能,請執行下列動作:Enterprise Voice isn't a requirement for Microsoft Teams Rooms, but if you want PSTN dialing functionality for the Microsoft Teams Rooms client, here's how to enable it:

    Set-CsMeetingRoom PROJECTRIGEL01 -DomainController DC-ND-001.contoso.com -LineURI "tel:+14255550555;ext=50555"
    Set-CsMeetingRoom -DomainController DC-ND-001.contoso.com -Identity PROJECTRIGEL01 -EnterpriseVoiceEnabled $true
    Grant-CsVoicePolicy -PolicyName VP1 -Identity PROJECTRIGEL01
    Grant-CsDialPlan -PolicyName DP1 -Identity PROJECTRIGEL01
    

    同樣地,您必須以您自己的資訊取代所提供的網網域控制站和電話號碼範例。Again, you'll need to replace the provided domain controller and phone number examples with your own information. 參數值 $true 保持不變。The parameter value $true stays the same.

範例: Exchange 和商務用 Skype Server 內部部署中的房間帳戶設定Sample: room account setup in Exchange and Skype for Business Server on premises

New-Mailbox -Alias rigel1 -Name "Rigel 1" -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String "" -AsPlainText -Force)
-UserPrincipalName rigel1@contoso.com

Set-CalendarProcessing -Identity rigel1 -AutomateProcessing AutoAccept -AddOrganizerToSubject $false -AllowConflicts $false -DeleteComments $false -DeleteSubject $false
-RemovePrivateProperty $false
Set-CalendarProcessing -Identity rigel1 -AddAdditionalResponse $true -AdditionalResponse "This is a Skype Meeting room!"

Enable-CsMeetingRoom -Identity rigel1@contoso.com -RegistrarPool cs3.contoso.com -SipAddressType EmailAddress
Set-CsMeetingRoom -Identity rigel1 -EnterpriseVoiceEnabled $true -LineURI tel:+155555555555
Grant-CsVoicePolicy -PolicyName dk -Identity rigel1
Grant-CsDialPlan -PolicyName e15dp2.contoso.com -Identity rigel1

設定 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