Export (0) Print
Expand All

Remove-SPWOPIBinding

Office Web Apps
 

Applies to: SharePoint Server 2013, SharePoint Foundation 2013, Office Web Apps

Topic Last Modified: 2013-12-18

Removes bindings for applications, file name extensions, and their associated actions on the current SharePoint farm where this cmdlet is run.

Remove-SPWOPIBinding [[-Identity] <SPWopiBindingPipeBind>] [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
Remove-SPWOPIBinding [-Action <String>] [-Application <String>] [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-Extension <String>] [-ProgId <String>] [-Server <String>] [-WhatIf [<SwitchParameter>]] [-WOPIZone <String>]
Remove-SPWOPIBinding [-All <SwitchParameter>] [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

The Remove-SPWOPIBinding cmdlet removes bindings for applications, file name extensions, and their associated actions on the current SharePoint farm where this cmdlet is run. After you run this cmdlet, you can use New-SPWOPIBinding to re-create the bindings as needed. If you remove all the bindings for an application, users cannot use Office Web Apps or the SharePoint Share by link feature for that application. If you remove all the bindings on the SharePoint farm where this cmdlet is run, users cannot use Office Web Apps or the SharePoint Share by link feature for any applications in the SharePoint library.

If you want to stop using Office Web Apps for default clicks, but must preserve the bindings’ discovery information and the ability for users to use the SharePoint Share by link feature to send a link to a document and allow the recipient to use Office Web Apps for that document type, use the New-SPWOPISuppression cmdlet instead.

 

Parameter Required Type Description

Identity

Optional

Microsoft.SharePoint.PowerShell.SPWopiBindingPipeBind

Specifies the binding.

Action

Optional

System.String

Specifies the action to remove bindings for. For example, “view," “edit," and “embedview." For a list of actions run Get-SPWOPIBinding. Most typically you will not use this parameter. If you specify some actions but not others, some features in SharePoint may not work.

All

Optional

System.Management.Automation.SwitchParameter

Removes all bindings.

Application

Optional

System.String

Specifies application to remove bindings for. Possible applications are as follows: “Word," “Excel," “PowerPoint," or “OneNote." Run Get-SPWOPIBinding to get the list of applications.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

NoteNote:
When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters.

Extension

Optional

System.String

Specifies the file name extensions to remove bindings for. Run Get-SPWOPIBinding to get the list of file name extensions.

ProgId

Optional

System.String

Specifies the programmatic identifier (ProgID) for an application to remove bindings for. Run Get-SPWOPIBinding to get the list of ProgIDs. You may only want to use this parameter to remove bindings for OneNote.

Server

Optional

System.String

Specifies the name of WOPI application (like Office Web Apps Server) to remove bindings for.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

WOPIZone

Optional

System.String

Specifies the zone to remove bindings for.

--------------EXAMPLE 1-----------------

Remove-SPWOPIBinding -Application "Excel"

This example removes all bindings for Excel on the current SharePoint farm where this cmdlet is run.

--------------EXAMPLE 2-----------------

Remove-SPWOPIBinding -All:$true

This example removes all bindings on the current SharePoint farm where this cmdlet is run.

--------------EXAMPLE 3-----------------

Get-SPWOPIBinding -Action "MobileView" | Remove-SPWOPIBinding

This example removes all bindings for Office Mobile Web Apps on the current SharePoint farm where this cmdlet is run.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft