Deploy Microsoft Teams Rooms with Skype for Business Server

This topic explains how you add a device account for Microsoft Teams Rooms when you have a single-forest, on-premises deployment.

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. If you're using a multi-forest deployment, you can use equivalent cmdlets that will produce the same results. Those cmdlets are described in this section.

Before you begin to deploy Microsoft Teams Rooms, be sure you have the right permissions to run the associated cmdlets.

Set-ExecutionPolicy Unrestricted
$cred=Get-Credential $admin@$org
$sessExchange = New-PSSession -ConfigurationName -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

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. 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. 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 -Alias PROJECTRIGEL01 -Name "Project-Rigel-01" -Room
    -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)
  2. You can set various Exchange properties on the device account to improve the meeting experience for people. 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. 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. Enable the account in Active Directory so it will authenticate to Microsoft Teams Rooms.

    Set-AdUser $acctUpn -Enabled $true
  5. 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 -DomainController
    -RegistrarPool -Identity PROJECTRIGEL01

    You'll need to use the Session Initiation Protocol (SIP) address and domain controller for the Project

  6. Optional. 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. 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 -LineURI "tel:+14255550555;ext=50555"
    Set-CsMeetingRoom -DomainController -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. The parameter value $true stays the same.

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)

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 -RegistrarPool -SipAddressType EmailAddress
Set-CsMeetingRoom -Identity rigel1 -EnterpriseVoiceEnabled $true -LineURI tel:+155555555555
Grant-CsVoicePolicy -PolicyName dk -Identity rigel1
Grant-CsDialPlan -PolicyName -Identity rigel1

See also

Configure accounts for Microsoft Teams Rooms

Plan for Microsoft Teams Rooms

Deploy Microsoft Teams Rooms

Configure a Microsoft Teams Rooms console

Manage Microsoft Teams Rooms