Configure SharePoint Server to use Office Online Server


In a test environment that uses HTTP
========================================================================
Step 1: Create the binding between SharePoint 2016 and Office Web Apps Server
New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP


Step 2: View the WOPI zones for the SharePoint bindings
Get-SPWOPIZone


Step 3: Change the WOPI zone to internal-http
Set-SPWOPIZone -zone "internal-http"


Step 4: Change the AllowOAuthOverHttp setting in SharePoint 2016 to True
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp


Step 5: Enable the Excel SOAP API
$Farm = Get-SPFarm
$Farm.Properties.Add("WopiLegacySoapSupport", "<URL>/x/_vti_bin/ExcelServiceInternal.asmx");
$Farm.Update();

Step 6: Verify that Office Web Apps is working



In a production environment that uses HTTPS
========================================================================
Step 1: Create the binding between SharePoint 2016 and Office Web Apps Server
New-SPWOPIBinding -ServerName <WacServerName>

Step 2: View the WOPI zones for the SharePoint bindings
Get-SPWOPIZone

Step 3: Change the WOPI zone to internal-http
Set-SPWOPIZone -zone "external-https"

Step 4: Enable the Excel SOAP API
$Farm = Get-SPFarm
$Farm.Properties.Add("WopiLegacySoapSupport", "<URL>/x/_vti_bin/ExcelServiceInternal.asmx");
$Farm.Update();

Step 5: Verify that Office Web Apps is working



Disconnect SharePoint Server 2016 from Office Online Server
========================================================================
Remove-SPWOPIBinding -All:$true


Source: https://technet.microsoft.com/en-us/library/ff431687(v=office.16).aspx
  

Comments

Popular posts from this blog

PowerShell command to import Module and Get-ADUser

Configure Office Web Apps for SharePoint 2013