Remove-SPWOPISuppressionSetting

在运行此 cmdlet 的当前 SharePoint 场上删除文件扩展名或编程 ID 和操作的禁止显示设置。

语法

Remove-SPWOPISuppressionSetting
      [-Action <String>]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-Extension <String>]
      [-ProgId <String>]
      [-WhatIf]
      [<CommonParameters>]
Remove-SPWOPISuppressionSetting
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-Identity <String>]
      [-WhatIf]
      [<CommonParameters>]

说明

Remove-SPWOPISuppressionSetting cmdlet 删除文件扩展名或编程缩进器的抑制设置 (ProgID) 和运行此 cmdlet 的当前 SharePoint 场上的操作。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

--------------示例 1-----------------

Remove-SPWOPISuppressionSetting -Extension "XLSX" -Action "view"

此示例删除用于查看文件扩展名为".xlsx"的 Excel 工作簿的禁止显示设置。

--------------示例 2-----------------

Get-SPWOPISuppressionSetting | Remove-SPWOPISuppressionSetting

此示例在运行此 cmdlet 的当前 SharePoint 场上删除所有禁止显示设置。

参数

-Action

指定给定文件扩展名或编程标识符 (ProgId) 的操作。 例如,"view"、"edit"和"embedview"。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

执行命令前,看到确认提示。 有关详细信息,请键入以下命令: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Extension

指定文件扩展名。 运行 Get-SPWOPIBinding 以获取 WOPI 应用程序支持的文件扩展名列表。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

指定表示 SPWOPISuppressionSetting 的字符串。 运行 Get-SPWOPISuppressionSetting 以查看此类字符串的示例。

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ProgId

指定要禁止显示的应用程序的编程标识符 (ProgID)。 运行 Get-SPWOPIBinding 以获取 WOPI 应用程序支持的 ProgID 列表。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

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.

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition