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.
New-SPWOPISuppressionSetting -Action "View" -Extension "xls"
To view current suppression settings, use the Get-SPWOPISuppressionSetting
cmdlet without any parameters. You can also remove any suppression setting by using the Remove-SPWOPISuppressionSetting
cmdlet with the action and extension or by providing the identity of the specific suppression setting.
3.17.150.163