Remove-SPSiteSubscriptionFeaturePackMember

从所提供的 SharePoint 功能集中删除功能定义。

语法

Remove-SPSiteSubscriptionFeaturePackMember
      [-Identity] <SPSiteSubscriptionFeaturePackPipeBind>
      [-AllFeatureDefinitions]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Remove-SPSiteSubscriptionFeaturePackMember
      [-Identity] <SPSiteSubscriptionFeaturePackPipeBind>
      -FeatureDefinition <SPFeatureDefinitionPipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

说明

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet parameter sets.

Remove-SPSiteSubscriptionFeaturePackMember cmdlet 从 Identity 参数指定的功能集中删除提供的 FeatureDefinition 参数。 如果提供 AllFeatureDefinitions 标志,将从给定的功能集中删除所有功能定义。

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

示例

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

$FS = Get-SPSiteSubscriptionFeaturePack "30daa535-b0fe-4d10-84b0-fb04029d161a"
Remove-SPSiteSubscriptionFeaturePackMember -Identity $fs -FeatureDefinition (Get-SPFeature "PublishingSite")

此示例从 ID 为 30daa535-b0fe-4d10-84b0-fb04029d161a 的功能集中删除 PublishingSite 功能。

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

Get-SPSiteSubscriptionFeaturePack "30daa535-b0fe-4d10-84b0-fb04029d161a" | Remove-SPSiteSubscriptionFeaturePackMember -AllFeatureDefinitions

此示例从功能集 30daa535-b0fe-4d10-84b0-fb04029d161a 中删除所有功能。

参数

-AllFeatureDefinitions

从功能集中清除所有功能。

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

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: 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

-FeatureDefinition

指定要删除的功能定义。

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

-Identity

指定要从中删除功能的功能集。

键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;或功能集的有效名称(例如,FeatureSet1);或有效 SPFeatureSet 对象的实例。

Type:SPSiteSubscriptionFeaturePackPipeBind
Position:1
Default value:None
Accept pipeline input:True
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