Add-SPSiteSubscriptionProfileConfig

向 User Profile Service 应用程序添加新的网站订阅。

语法

Add-SPSiteSubscriptionProfileConfig
   [-Identity] <SPSiteSubscriptionPipeBind>
   [-MySiteHostLocation <SPSitePipeBind>]
   -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-SynchronizationOU <String>]
   [-WhatIf]
   [<CommonParameters>]
Add-SPSiteSubscriptionProfileConfig
   [-Identity] <SPSiteSubscriptionPipeBind>
   -MySiteHostLocation <SPSitePipeBind>
   -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-MySiteManagedPath <SPPrefixPipeBind>]
   [-SiteNamingConflictResolution <String>]
   [-SynchronizationOU <String>]
   [-WhatIf]
   [<CommonParameters>]

说明

此 cmdlet 包含多个参数集。 您可以只使用来自一个参数集的参数,也可以不合并来自不同参数集的参数。 若要详细了解如何使用参数集,请参阅 Cmdlet 参数集

Add-SPSiteSubscriptionProfileConfig cmdlet 向 User Profile Service 应用程序添加新的网站订阅。

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

示例

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

$sub = Get-SPSiteSubscription https://contoso/my
$proxy = Get-SPServiceApplicationProxy | ? {$_.TypeName -eq 'User Profile Service Application Proxy'}
Add-SPSiteSubscriptionProfileConfig -Identity $sub -ProfileServiceApplicationProxy $proxy -MySiteHostLocation https://contoso/my
$sub = New-SPSiteSubscription

此示例创建一个新的 User Profile Service 应用程序租户。

参数

-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

-Identity

指定要添加网站订阅的 User Profile Service 应用程序的代理。

键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;User Profile Service 应用程序代理的有效名称(如 UserProfileSvcProxy1);或有效 SPServiceApplicationProxy 对象的实例。

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

-MySiteHostLocation

指定将在其中设置网站订阅的“我的网站”宿主的网站集。

该类型必须是有效的 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh;或有效的 URL(窗体 https://server_name中)或有效的 SPSite 对象的实例。

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

-MySiteManagedPath

指定将在其中创建个人网站的托管路径。

键入的值必须为有效的 URL,格式为 https://server_name。

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

-ProfileServiceApplicationProxy

指定将在其中创建租户的 User Profile Service 应用程序代理的标识符。

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

-SiteNamingConflictResolution

指定命名个人网站所采用的格式。

使用下列整数值之一:

1 个人网站集将基于用户名进行命名,而无需解决任何冲突。 例如,https://portal_site/location/username/

2 个人网站集将基于使用域名解决冲突的用户名。 例如,.../username/ 或 .../domain_username/

3 个人网站集将始终使用域和用户名进行命名,以避免任何冲突。 例如,https://portal_site/location/domain_username/

默认值为 1(不解决冲突)。

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

-SynchronizationOU

指定为网站订阅提供服务的组织单位。

键入的值必须为有效的组织单位名称;例如 OrgUnit1。

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