Skip to main content

Step by step Office Online Server(OOS) Installation for SharePoint 2016

Step by step Office Online Server(OOS) Installation for SharePoint 2016

You can create, share and collaborate on Word, PowerPoint, Excel and OneNote files in your browser. Most notably, OOS with SharePoint lets multiple people work in a document at the same time and see everyone’s changes as they happen.Office Online Server 2016 needs to be installed on its own server, and cannot coexist with a SharePoint installation. It can still be used as a standalone installation.

The farm we are using here is a one SQL Server with the SharePoint 2016 Application Server MinRole installed on, a Web-Front end (MinRole), and a standalone Office Online Server (OOS) node.

We can download OOS from the Volume License Servicing Center at no cost. 

Pre-requisites:
Step Install these software packages on your Office Online Server(s).

.NET Framework 4.5.2
Visual C++ Redistributable Packages for Visual Studio 2013
Visual C++ Redistributable for Visual Studio 2015
Microsoft.IdentityModel.Extention.dll

Steps:
1.Enable web server role and features:
Open Powershell then rub the below script.


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

2.Restart the server.
3.Download OOS from MSDN and click on setup file.
4. Keep the drive location to default C Drive.
5.Do the same setting for another server if you have.
6.If we don’t have certificate we need to configure it , in this case we have ‘OOSCert’. or Create Self signed certificate.

Import your Personal certificate:





7.Go to OOS server the run the following script.

Add the parameter -externalURL to define a different URL for accessing your Office Online Server farm. Shouldn’t be needed in most cases because you’re already using a FQDN with your internal URL. The parameter –CertificateName reflects the friendly name of your certificate.

Import-Module -Name OfficeWebApps 
# OWA Parameters
$InternalURL = "https://sp-oos.sharepoint.com"
$ExternalURL = "https://sp-oos.sharepoint.com"
$CertName = "OOSCert" 
$LogLocation = "E:\OfficeOnlineServerLogs\LogsOS" 
$maxMemoryCacheSizeInMB = 75  #Default 75
$CacheSizeInGB = 15  #Default 15
$CacheLocation = "E:\OfficeServer\DiskCache"
$RenderingLocalCacheLocation = "E:\OfficeServer\RenderingCache" 

# Create the farm
New-OfficeWebAppsFarm -InternalUrl $internalURL -ExternalUrl $ExternalURL -CertificateName $CertName -EditingEnabled -LogLocation $LogLocation -CacheLocation $CacheLocation -RenderingLocalCacheLocation $RenderingLocalCacheLocation -MaxMemoryCacheSizeInMB $maxMemoryCacheSizeInMB -CacheSizeInGB $CacheSizeInGB  

8. Click on "Yes" to continue this operation.

9. Verify at IIS websites and application pools.

10. Join Second Server to the farm if you have,Login to the server another server.

Run the following script.

New-OfficeWebAppsMachine -MachineToJoin server2name

11. Verify that the Office Web Apps Server farm was created successfully or not?

At this point, our job is done for the Office Online Server 2016 configuration. You can go ahead and test that the “Farm” was successfully created by trying to access https://<server name>/hosting/discovery using Internet Explorer (or edge if using Windows Server 2016 Preview). If everything worked, you should see the server’s XML WOPI output as shown in the figure below(image was copied from MSDN).



12.Go to SharePoint Farm server(Connecting to SharePoint) , run the following script in powershell.

Add-PSSnapin Microsoft.SharePoint.PowerShell
New-SPWOPIBinding -ServerName sp-oos.sharepoint.com

Get-SPWOPIZone

Set-SPWOPIZone -zone "internal-https"
#These lines adds supports for legacy excel services to be redirected to new OOS service
$Farm = Get-SPFarm
$Farm.Properties.Add("WopiLegacySoapSupport","https://sp-oos.sharepoint.com/x/_vti_bin/ExcelServiceInternal.asmx");
$Farm.Update(); 

If the command worked, you will see a lot of Office specific properties being output on screen.


13.We are now all set! , Now verify the OOS for office documents.
14. In case the office documents are not showing in the browser/preview then see the logs.

Log Location for Office Online Server is :  C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS

Comments

  1. It was exactly what I was looking for, so thank you so much for your work!

    ReplyDelete
  2. How did you download the office online server from that link? What subscription do I need ?

    ReplyDelete

Post a Comment

Popular posts from this blog

Tab Control in Asp.Net

Scenerio: I need your help in designing tab control in   asp.net .My requirement is I need a tab control in   asp.net (C#) like  for example goto my computer ,right click c drive and select properties.we get tabs like general,security etc....... like that i need to design one tab control(no need of any rightclick) in my web page and the database table columns should come as tabs and inseide the tab data of that particular column should come.   Example:Employee master tab1:Employee name.........his name in the tab tab2:Age.............his age tab3:Address........his address   Solution:   You can do this using a simple div <style type="text/css"> .tabs         {             position: relative;             height: 20px;             margin: 0;   ...

AI and Microsoft: Revolutionizing Efficiency in Nonprofit Organizations

  How AI and Microsoft Enhance Efficiency in Nonprofit Organizations In today’s fast-paced world, nonprofit organizations face unique challenges—limited resources, increasing demands, and the constant need to do more with less. But what if technology could be the game-changer they need? In my latest research paper,  "How AI and Microsoft Enhance Efficiency in Nonprofit Organizations" , I explore how cutting-edge technologies like Artificial Intelligence (AI) and Microsoft’s innovative tools are revolutionizing the way nonprofits operate. From streamlining administrative tasks to enhancing donor engagement and optimizing resource allocation, AI and Microsoft’s solutions are empowering nonprofits to focus on what truly matters—their mission. This paper dives deep into real-world examples, practical applications, and the transformative potential of these technologies. Whether you’re a nonprofit professional, a tech enthusiast, or simply curious about the intersection of technolo...

Social tagging overview in Sharepoint 2010

A tag is a word or phrase that identifies an individual piece of information according to a set of attributes or criteria. Tags make it easy to find and share information about a specific subject or task. Social tagging helps users categorize information in ways that are meaningful to them. Social tagging can improve the quality of search results by filtering against specific tags, and it can also connect individuals who want to share information with other users who have like interests. This article describes the social tagging features in Microsoft SharePoint Server 2010. This article does not describe how to configure social tagging features. It also does not discuss how to implement social tagging features as part of an overall social media strategy for an enterprise. About using social tagging features Social tagging features help users to share information and to retrieve relevant, high-quality content more efficiently. Such sharing encourages collaboration and b...