latest changes

This commit is contained in:
John Kaiser
2019-06-03 14:27:40 -07:00
parent 4d6c24c801
commit 74f5f884db
9 changed files with 167 additions and 120 deletions

View File

@ -0,0 +1,57 @@
---
title: "Configure Surface Hub 2S on-premises accounts with PowerShell"
description: "Learn how to configure Surface Hub 2S on-premises accounts with PowerShell"
keywords: separate values with commas
ms.prod: surface-hub
ms.sitesec: library
author: robmazz
ms.author: robmazz
audience: Admin
ms.topic: article
ms.localizationpriority: 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."
```