Disable Certain WOPI Actions

Scenario/Problem: You need to disable certain WOPI actions within SharePoint such that other Office document functionality functions properly (e.g. Excel Services to view workbooks instead of launching WOPI).

Solution: Use the New-SPWOPISuppressionSetting cmdlet.

The New-SPWOPISuppressionSetting cmdlet is used to disable Office Web App functionality for the specified action, file extension, and/or programmatic identifier. You can view the current bindings using the Get-SPWOPIBinding cmdlet and retrieve the available values for the parameters. Typically, the -Action and -Extension parameters are used together to suppress an action for a particular document type, as shown in Listing 26.7.

Listing 26.7. Suppressing ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.