Installing Office Web Apps with SharePoint 2013

Back to Blog Listing

Office Web Apps with SharePoint 2013 allows users to view or edit documents via the browser. It also allows users to preview documents through either search results or browsing document libraries themselves. 

To get office web apps setup with SharePoint 2013 you need to do the following:

Ensure you have a separate server/VM with same specifications as a SharePoint 2013 server. See for the minimum required specifications.

Install the pre-requisites on the new Office web apps server. Run the following Powershell (as administrator) command to automate this:

Import-Module servermanager Add-WindowsFeature Web-Server, Web-WebServer,
Web-Common-Http, Web-Static-Content, Web-App-Dev, Web-Asp-Net, Web-Net-Ext,
Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Includes, Web-Security, Web-Windows-Auth,
Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, Web-Mgmt-Console,
InkAndHandwritingServices, Web-Net-Ext45, Web-Asp-Net45

Some of these may not be necessary or you may need to install these through the server manager.

Download and install the office web apps server at

Download and apply the update for office web apps at

Create the OWA farm on the office web apps server by running the following command in Powershell:

New-OfficeWebAppsFarm -InternalURL <OfficeWebAppsHostname>
-ExternalURL <OfficeWebAppsHostname> -AllowHttp –EditingEnabled

You need to replace the <OfficeWebAppsHostname> with the hostname of the office web apps server e.g http://owa-app01 NOT the SharePoint URL

On the SharePoint web server run the following 2 commands in a SharePoint Powershell command window to create the binding to the office web apps server:

New-SPWOPIBinding -ServerName <OfficeWebAppsHostname> –AllowHTTP
Set-SPWopiZone -zone "internal-http"

To enable pdf previews run the following commands in SharePoint Powershell:

$tenantOwner = Get-SPEnterpriseSearchOwner -Level SSA
$ssa = "Search Service Application" #adjust if you renamed the service


$rule = get-SPEnterpriseSearchPropertyRule -PropertyName "FileType" -Operator "IsEqual"

$rule.AddValue( "pdf" )

$ruleCollection = Get-SPEnterpriseSearchPropertyRuleCollection


$item = new-SPEnterpriseSearchResultItemType -Owner $tenantOwner -SearchApplication $ssa -Name "PDF with Preview" -Rules $ruleCollection -RulePriority 1 -DisplayProperties "Title,Author,Size,Path,Description,EditorOWSUSER,LastModifiedTime,CollapsingStatus,DocId, HitHighlightedSummary,HitHighlightedProperties,FileExtension,ViewsLifeTime,ParentLink,ViewsRecent, FileType,IsContainer,SecondaryFileExtension,DisplayAuthor,docaclmeta,ServerRedirectedURL, SectionNames,SectionIndexes, ServerRedirectedEmbedURL,ServerRedirectedPreviewURL" -DisplayTemplateUrl "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Word.js" -OptimizeForFrequentUse $true

Next you need to enable AllowOAuthOverHttp setting using the following commands again in SharePoint powershell:

$config = (Get-SPSecurityTokenServiceConfig
$config.AllowOAuthOverHttp = $true

Check that the setting is set to true by using the commmand:


Do a full crawl of the SharePoint local sites content source and that should be it!


27 Nov 2013

About the Author

James CTwo is our blogging alter ego for the Dynamics CRM and Web experts here at C2. We have a passion for anything CRM, Web Design or Social Media. We love writing about it! Find us on YouTube & Twitter.

comments powered by Disqus

Our White Papers

Discover the content that matters to you on business transformation. Explore how you can drive customer engagement, empower your team, optimise your businesses and revolutionise your products with the next digital revolution. For more information visit our white paper library.


C2 Newsletter

Our newsletter is sent on a quarterly basis, offering detailed insights into all aspects of business transformation with Microsoft cloud technologies. We also promote upcoming events and special offers throughout the year. Sign up to get involved today.

Dynamics 365 Office 365 Power BI Silver Partner