Remove WOPI Bindings from SharePoint


Scenario/Problem: You need to remove WOPI bindings from SharePoint.


Solution: Use the Remove-SPWOPIBinding cmdlet.

The Remove-SPWOPIBinding cmdlet has three different parameter sets that can be used to remove bindings. The simplest set removes all bindings and needs only the -All switch parameter, as shown in Listing 26.4.

Listing 26.4. Removing All WOPI Bindings from SharePoint


Remove-SPWOPIBinding -All


Provide a specific binding using the identity pipe parameter to remove a specific binding (as shown in Listing 26.5) or simply provide the same parameters to Remove-SPWOPIBinding as you would to get the binding (as shown in Listing 26.6).

Listing 26.5. Removing a Specific Binding Using the Identity Pipe


Get-SPWOPIBinding -Application "Excel" | Remove-SPWOPIBinding


Listing 26.6. Removing a Specific Binding Using Parameters


Remove-SPWOPIBinding -Application "Excel"


Use the following parameters to identify a specific binding:

Action: String that specifies a specific action to return (such as view or edit)

Application: String that specifies a specific application to return (such as Excel)

Extension: String that specifies a specific file extension to return (such as doc or xls)

Server: String that specifies a specific WOPI server to return

WOPIZone: String that specifies a specific zone to return

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.1.158