Remove-SPWOPIBinding
在執行此 Cmdlet 的目前 SharePoint 伺服器陣列上,移除應用程式、擴展名及其相關聯動作的系結。
語法
Identity
Remove-SPWOPIBinding
[[-Identity] <SPWopiBindingPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Filter
Remove-SPWOPIBinding
[-Action <String>]
[-Application <String>]
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-Extension <String>]
[-ProgId <String>]
[-Server <String>]
[-WhatIf]
[-WOPIZone <String>]
[<CommonParameters>]
RemoveAll
Remove-SPWOPIBinding
[-All]
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Cmdlet Remove-SPWOPIBinding 會在執行此 Cmdlet 的目前 SharePoint 伺服器陣列上,移除應用程式、擴展名及其相關聯動作的系結。
執行此 Cmdlet 之後,您可以視需要使用 New-SPWOPIBinding 來重新建立系結。
如果您移除應用程式的所有系結,使用者就無法使用該應用程式的 Office Web Apps 或 SharePoint Share by 連結功能。
如果您在執行此 Cmdlet 的 SharePoint 伺服器陣列上移除所有系結,則使用者無法針對 SharePoint 文檔庫中的任何應用程式使用 Office Web Apps 或 SharePoint Share by 連結功能。
如果您想要停止使用 Office Web Apps 進行預設點選,但必須保留系結的探索資訊,以及讓用戶能夠使用 SharePoint Share by 連結功能來傳送文件的連結,並允許收件者針對該文件類型使用 Office Web Apps,請改用 New-SPWOPISuppression Cmdlet。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
範例 1
Remove-SPWOPIBinding -Application "Excel"
本範例會移除目前執行此 Cmdlet 之 SharePoint 伺服器陣列上 Excel 的所有系結。
範例 2
Remove-SPWOPIBinding -All:$true
此範例會從目前執行此 Cmdlet 的 SharePoint 伺服器陣列中,移除所有繫結。
範例 3
Get-SPWOPIBinding -Action "MobileView" | Remove-SPWOPIBinding
此範例會從目前執行此 Cmdlet 的 SharePoint 伺服器陣列中,移除 Office Mobile Web Apps 的所有繫結。
參數
-Action
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結的動作。
例如,“view”、“edit” 和 “embedview”。如需動作清單,請執行 Get-SPWOPIBinding。
一般而言,您不會使用此參數。
若您指定部分動作 (但未包括其他動作),則 SharePoint 的某些功能可能無法運作。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-All
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
移除所有繫結。
參數屬性
| 類型: | SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
RemoveAll
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Application
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結的應用程式。
可能的應用程式如下:「Word」、「Excel」、「PowerPoint」或「OneNote」。執行 Get-SPWOPIBinding 以取得應用程式清單。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-AssignmentCollection
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment 命令加以捨棄,則可能會有記憶體不足的狀況發生。
參數屬性
| 類型: | SPAssignmentCollection |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Confirm
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令: get-help about_commonparameters。
參數屬性
| 類型: | SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | cf |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Extension
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結的副檔名。
執行 Get-SPWOPIBinding 以取得擴展名清單。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Identity
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定繫結。
參數屬性
| 類型: | SPWopiBindingPipeBind |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Identity
| Position: | 1 |
| 必要: | False |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ProgId
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結之應用程式的程式設計識別碼 (ProgID)。
執行 Get-SPWOPIBinding 以取得 ProgID 清單。
您可能只想使用此參數移除 OneNote 的繫結。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Server
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結之 WOPI 應用程式 (例如 Office Web Apps Server) 的名稱。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-WhatIf
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters。
參數屬性
| 類型: | SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | 無線 |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-WOPIZone
適用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要移除繫結的區域。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Filter
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。