Share via


Set-SPProfileServiceApplicationProxy

 

適用版本: SharePoint Server 2010

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

設定使用者設定檔服務應用程式之 Proxy 的屬性。

Syntax

Set-SPProfileServiceApplicationProxy [-Identity] <SPServiceApplicationProxyPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-DefaultProxyGroup <SwitchParameter>] [-MySiteHostLocation <SPSitePipeBind>] [-MySiteManagedPath <SPPrefixPipeBind>] [-Name <String>] [-SiteNamingConflictResolution <String>] [-WhatIf [<SwitchParameter>]]

詳細描述

Set-SPProfileServiceApplicationProxy cmdlet 可設定使用者設定檔服務應用程式之 Proxy 的屬性。

Parameters

參數 必要 類型 描述

Identity

必要

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

指定所要更新的使用者設定檔服務應用程式 Proxy。

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

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

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

注意

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

Confirm

選用

System.Management.Automation.SwitchParameter

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

DefaultProxyGroup

選用

System.Management.Automation.SwitchParameter

指定將使用者設定檔服務應用程式新增到本機伺服器陣列的預設 Proxy 群組。

MySiteHostLocation

選用

Microsoft.SharePoint.PowerShell.SPSitePipeBind

指定在建立「我的網站」所在的網站集合。

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

MySiteManagedPath

選用

Microsoft.SharePoint.PowerShell.SPPrefixPipeBind

指定個人網站的受管理路徑位置。

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

Name

選用

System.String

指定使用者設定檔服務應用程式的顯示名稱。所用的名稱在此伺服器陣列中,必須是唯一的使用者設定檔服務應用程式名稱。名稱最長可包含 128 個字元。

此類型必須是有效服務應用程式 Proxy 的名稱,例如 UserProfileSvcProxy1。

SiteNamingConflictResolution

選用

System.String

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

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

1   個人網站集合將以沒有任何衝突解析的使用者名稱為基礎。例如,http://portal_site/location/username/

2   個人網站集合將使用網域名稱以具有衝突解析的使用者名稱為基礎。例如,.../username/ 或 .../domain_username/

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

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

WhatIf

選用

System.Management.Automation.SwitchParameter

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

輸入類型

傳回類型

Example

----------------範例---------------------

#Get UPA Proxy
$pr = Get-SPServiceApplicationProxy | ? {$_.DisplayName.Contains(PartitionedUserProfileApplication_Proxy)}

#Change the name of the proxy
Set-SPProfileServiceApplicationProxy -Identity $pr -Name PartitionedUserProfileApplication_Proxy2

此範例會設定使用者設定檔服務應用程式的 Proxy。

See Also

Reference

New-SPProfileServiceApplicationProxy