Can you turn off Office Online Server "preview" on some Web Applications?

C1TonyB 336 Reputation points
2020-11-09T12:59:38.697+00:00

I have Office Online Server connected to a SharePoint 2016 farm with multiple web applications. Is it possible to turn off/disable "preview" on some of the web applications or site collections? Or is this all or nothing?

Thank you.

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,938 questions
{count} votes

Accepted answer
  1. Sharath Kumar Aluri 3,071 Reputation points
    2020-11-09T15:19:15.66+00:00

    Unfortunately there is no way to turn off Office Online Server for some web applications in SharePoint Farm, It has to be for entire SharePoint Farm. But you can disable the opening documents in client applications by Default at Site collection level, You can use powershell to do it for all site collection in the Web Applications.

    $WebAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).Id
    $SiteCollection = Get-SPSite -Identity <<SharePoint-Site-URL>>
    Disable-SPFeature $webAppsFeatureId -Url $SiteCollection.URL
    

    https://www.sharepointdiary.com/2014/08/disable-office-web-apps-enable-open-in-client-sharepoint.html

    Thanks & Regards,

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.