Set-SPSiteSubscriptionConfig

设置网站订阅的配置属性。

语法

Set-SPSiteSubscriptionConfig
   [-Identity] <SPSiteSubscriptionPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-PassThru]
   [-UserAccountDirectoryPath <String>]
   [-WhatIf]
   [-FeaturePack <SPSiteSubscriptionFeaturePackPipeBind>]
   [<CommonParameters>]

说明

Set-SPSiteSubscriptionConfig cmdlet 设置网站订阅的配置属性。

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

示例

--------------------示例---------------------

Set-SPSiteSubscriptionConfig https://contoso.com -FeaturePack 12345678-90ab-cdef-1234-567890abcdef

本示例设置包含功能包 GUID 的整个网站订阅 https://contoso.com 的功能集。

参数

-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

-FeaturePack

{{Fill FeaturePack Description}}

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

-Identity

指定要更新的网站订阅配置。

键入的值必须是有效的 GUID(格式为 12345678-90ab-cdef-1234-567890bcdefgh);是作为网站订阅成员的网站集的 SPSite(对象或 URL);或者是有效 SiteSubscription 对象的实例。

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

-PassThru

指定可以通过管道传递输出对象。

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

-UserAccountDirectoryPath

设置与网站订阅位于同一域的特定组织单位 (OU) 的网站用户帐户目录路径。

键入的值必须是可分辨 OU 的名称;例如,OU=Contoso1、DC=OSGCorp 和 DC=local。

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

-WhatIf

显示一条描述命令作用的消息,而不执行命令。 有关详细信息,请键入以下命令: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