Install Office Online Server 2016

In Exchange 2013 you could use the Office Web Apps server in combination with Exchange server to view attachments online, without having to download these attachments first to the local workstation. Exchange 2016 is the successor of Exchange 2013, Office Online Server (OOS) 2016 is the successor of Office Web Apps 2013.

For an optimal user experience in Outlook on the Web you want an Outlook Online Server to view attachments online. Instead of downloading the attachment to your client workstation (not ideal when working on a non-trusted workstation) you can view it in your browser, and your browser will show something like this:


So how does this work?

The OOS is a dedicated server which is positioned next to your Exchange 2016 server. It can be reached by internal clients and external clients, and it does render the attachments for the clients, so there’s communication between the clients and the Mailbox server, between the clients and the OOS and between the Mailbox server the OOS.

When a user receives an email with an attachment and is reading his email in OotW the following steps occur:

  1. In OotW the user clicks the attachment or the ‘View’ button.
  2. The Exchange retrieves discovery info for file type directly at the OOS.
  3. OOS returns the discovery info directly to the Exchange server with a unique URL.
  4. Exchange creates an <iframe>, loading the unique URL retrieved in the previous step. This is returned to the OotW client.
  5. The OotW client uses the unique URL (with a token) to access the OOS directly within the <iFrame>
  6. Exchange transfers the attachment directly to OOS.
  7. OOS renders the contents and returns this directly to the client.

These steps are shown in the following figure:


OOS has what’s called an endpoint, this is where clients connect to. An endpoint can be configured at the Mailbox server level or at the Exchange organization level. When setting it to a Mailbox server level you can configure it very granular. When using it at an organization level you only set it once, and this is used for all Exchange 2016 servers. If you have configured an OOS endpoint at a server level, but the OOS endpoint is not available, the client will retry the OOS endpoint set at the organization level.

Important to realize is that OOS needs to be accessible internally and externally. Since all communications is secured using SSL you need to be careful with SSL certificates. These need to be valid (and trusted!) on both the Exchange server and the OOS.

Installing Office Online Server

You can install OOS on Windows Server 2012 R2. Since this is the most common platform used at customers today I’ll for this one right now. When I can use Windows 2016 I’ll let you know.

So, install Windows 2012 R2, bring it up-to-date with all updates, make sure the .NET Framework 4.5.2 is installed and install the following prerequisite software using PowerShell:

Install-WindowsFeature Web-Server, Web-Mgmt-Tools, Web-Mgmt-Console, Web-WebServer, Web-Common-Http, Web-Default-Doc, Web-Static-Content, Web-Performance, Web-Stat-Compression, Web-Dyn-Compression, Web-Security, Web-Filtering, Web-Windows-Auth, Web-App-Dev, Web-Net-Ext45, Web-Asp-Net45, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Includes, InkandHandwritingServices, Windows-Identity-Foundation


When installed reboot the server.

The next step is to request and install a server certificate. This can be a regular certificate, no need to use a unified communications SSL certificate like you use on the Exchange server. You can use IIS Manager to create a new certificate.


When you’ve received the SSL certificate from your CA you can complete the certificate request. Make sure you give the certificate a friendly name, this name is used later in the process.

Installing OOS is very straight forward. Just start the setup application and follow the wizard, but the only the wizard will ask is the location where the binaries should be installed as shown in the following figure:


When the binaries are installed the actual server farm can be created, which is done using the following PowerShell command:

New-OfficeWebAppsFarm -InternalURL "" -ExternalURL "" -CertificateName "Office"

Please note the InternalURL and the ExternalURL, as well as the SSL certificate friendly name.


The installation of OOS is almost done now. The only thing left is to set the OOS endpoint. This can be set at the organizational level using the following Exchange PowerShell command:

Set-OrganizationConfig -WacDiscoveryEndpoint

If you use this, you can leave the endpoint at the mailbox level empty.

Restart the Office on the Web app pool to activate the new setting using the following command on the Exchange server:

Restart-WebAppPool MsExchangeOwaAppPool

If you don’t want to use the endpoint at the organization level, for example if you still have Exchange 2013 servers in your organization, you can set in the Mailbox server level using the following PowerShell command:

Set-MailboxServer AMS-EXCH01 -WacDiscoveryEndpoint "" Restart-WebAppPool MsExchangeOwaAppPool

To see if everything is up-and-running you can check if the endpoint is returning data. Using a browser, navigate to and check the results. It should show something like this:


And then the most important part, test Outlook on the Web with the Office Online server. Just send an email with an Office attachment, open the email and click on the attachment. It should automatically load the attachment in your browser, like this:


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s