windows-itpro-docs/devices/surface-hub/surface-hub-2s-onprem-powershell.md
2019-06-05 08:23:06 -07:00

2.3 KiB
Raw Blame History

title, description, keywords, ms.prod, ms.sitesec, author, ms.author, audience, ms.topic, ms.localizationpriority
title description keywords ms.prod ms.sitesec author ms.author audience ms.topic ms.localizationpriority
Configure Surface Hub 2S on-premises accounts with PowerShell Learn how to configure Surface Hub 2S on-premises accounts with PowerShell separate values with commas surface-hub library robmazz robmazz Admin article Normal

Configure Surface Hub 2S on-premises accounts with PowerShell

Connect to Exchange Server PowerShell

Note

It is important that you know the FQDN of the Client Access service of the on-premises Exchange server.

$ExchServer = Read-Host "Please Enter the FQDN of your Exchange Server"
$ExchSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://$ExchServer/PowerShell/ -Authentication Kerberos -Credential (Get-Credential)
Import-PSSession $ExchSession

Create the device account

New-Mailbox -UserPrincipalName Hub01@contoso.com -Alias Hub01 -Name "Hub 01" -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String <password> -AsPlainText -Force)

Set automatic calendar processing

Set-CalendarProcessing -Identity "HUB01@contoso.com" -AutomateProcessing AutoAccept -AddOrganizerToSubject $false AllowConflicts   $false DeleteComments $false -DeleteSubject $false -RemovePrivateProperty $false -AddAdditionalResponse $true -AdditionalResponse "This room is equipped with a Surface Hub"

Enable the Skype for Business object

Note

It is important that you know the FQDN of the Skype for Business Registrar Pool.

Enable-CsMeetingRoom -Identity Contoso\HUB01 -SipAddressType emailaddress -RegistrarPool SfbIEFE01.contoso.local

Mobile Device Mailbox Policy

You may need to create a new Mobile Device Mailbox Policy (also known as ActiveSync Policy) to allow your Surface Hub to connect to your online or on-premises environment.

Create a Surface Hub mobile device mailbox policy

New-MobileDeviceMailboxPolicy -Name “Surface Hubs” -PasswordEnabled $false

Additional settings

It is recommended to add a MailTip to Surface Hub rooms so users remember to make the meeting a Skype for Business or Teams meeting:

Set-Mailbox "Surface Hub 2S" -MailTip "This is a Surface Hub room. Please make sure this is a Microsoft Teams meeting."