windows-itpro-docs/devices/surface-hub/surface-hub-2s-configure-with-powershell.md
2019-05-31 09:19:57 -07:00

4.1 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 accounts via PowerShell Learn how to configure Surface Hub 2S accounts with PowerShell separate values with commas surface-hub library robmazz robmazz Admin article Normal

Configure Surface Hub 2S accounts via PowerShell

Connect to Exchange Online PowerShell

$365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential (Get-Credential) -Authentication Basic AllowRedirection $ImportResults = Import-PSSession $365Session

Create a new Room Mailbox

New-Mailbox -MicrosoftOnlineServicesID account@YourDomain.com -Alias SurfaceHub2S -Name SurfaceHub2S -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString  -String "<Enter Strong Password>" -AsPlainText -Force)

Set Calendar Auto processing

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

Assign a license

Connect-MsolService
Set-Msoluser -UserPrincipalName account@YourDomain.com -UsageLocation IE
Set-MsolUserLicense -UserPrincipalName "account@YourDomain.com" -AddLicenses "contoso:MEETING_ROOM"

Connecting to Skype for Business Online using PowerShell

Install prerequisites

 Import-Module LyncOnlineConnector
 $SfBSession = New-CsOnlineSession -Credential (Get-Credential)
 Import-PSSession $SfBSession -AllowClobber
 Enable the Skype for Business meeting room
 Enable-CsMeetingRoom -Identity account@YourDomain.com -RegistrarPoo(Get-CsTenant).Registrarpool -SipAddressType EmailAddress

Configuring on-premises accounts using 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."