共用方式為


Set-SPSiteSubscriptionProfileConfig

 

適用版本: SharePoint Server 2013

上次修改主題的時間: 2015-03-09

設定網站訂閱的參數。

Syntax

Set-SPSiteSubscriptionProfileConfig [-Identity] <SPSiteSubscriptionPipeBind> -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-MySiteHostLocation <SPSitePipeBind>] [-SynchronizationOU <String>] [-WhatIf [<SwitchParameter>]]

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

詳細描述

此 Cmdlet 包含一個以上的參數集。您可能只使用一個參數集中的參數,但不可以結合不同參數集的參數。如需如何使用參數集的詳細資訊,請參閱 Cmdlet Parameter Sets

Set-SPSiteSubscriptionProfileConfig Cmdlet 可設定網站訂閱的參數。

Parameters

參數 必要 類型 描述

Identity

必要

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

指定包含所要更新之網站訂閱的使用者設定檔服務應用程式的 Proxy。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的使用者設定檔服務應用程式名稱 (例如 UserProfileSvcProxy1);或有效之 SPServiceApplicationProxy 物件的執行個體。

MySiteHostLocation

必要

Microsoft.SharePoint.PowerShell.SPSitePipeBind

指定包含網站訂閱之「我的網站」主機佈建所在的網站集合。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;格式為 http://server_name 的有效 URL;或有效之 SPSite 物件的執行個體。

ProfileServiceApplicationProxy

必要

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

指定使用者設定檔服務應用程式之 Proxy 的名稱。

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

為能適當處置物件而管理物件。使用 SPWebSPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。使用 SPWebSPSiteSPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

注意

使用 Global 參數時,所有物件會包含在全域儲存區內。若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

Confirm

選用

System.Management.Automation.SwitchParameter

執行命令之前,會先提示您進行確認。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

MySiteManagedPath

選用

Microsoft.SharePoint.PowerShell.SPPrefixPipeBind

指定個人網站建立所在的受管理路徑。

此類型必須是格式為 http://server_name 的有效 URL。

SiteNamingConflictResolution

選用

System.String

指定要用來命名個人網站的格式。

使用下列其中一個整數值:

1-- 要以沒有任何衝突解析之使用者名稱來命名的個人網站集合。例如,http://portal_site/location/username/

2-- 要使用網域名稱以具有衝突解析之使用者名稱來命名的個人網站集合。例如,.../username/.../domain_username/

3-- 要使用網域及使用者名稱來命名的個人網站集合始終避免任何衝突。例如,http://portal_site/location/domain_username/

預設值為 1 (不解析衝突)。

SynchronizationOU

選用

System.String

指定提供網站訂閱的組織單位。

此類型必須是有效的組織單位名稱,例如 OrgUnit1。

WhatIf

選用

System.Management.Automation.SwitchParameter

顯示訊息描述命令效果,而非描述命令執行的效果。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

輸入類型

傳回類型

Example

新增程式碼範例

See Also

Reference

Add-SPSiteSubscriptionProfileConfig
Remove-SPSiteSubscriptionProfileConfig