Set-SPProfileServiceApplicationProxy

設定 User Profile Service 應用程式 Proxy 的屬性。

Syntax

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

Description

Cmdlet Set-SPProfileServiceApplicationProxy 會設定 User Profile Service 應用程式的 Proxy 屬性。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

----------------EXAMPLE---------------------

$proxy = Get-SPServiceApplicationProxy | ? {$_.TypeName -eq 'User Profile Service Application Proxy'}
Set-SPProfileServiceApplicationProxy -Identity $proxy -SiteNamingConflictResolution 2

本範例會將 User Profile Service 應用程式 Proxy設定為使用網站命名衝突解決,以使用前面加上使用者名稱的功能變數名稱。

參數

-AssignmentCollection

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

-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

-DefaultProxyGroup

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

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

-Identity

指定要更新的 User Profile Service 應用程式 Proxy。

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

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

-MySiteHostLocation

指定將在其中建立「我的網站」的網站集合。

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

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

-MySiteManagedPath

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

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

Type:SPPrefixPipeBind
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

-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

-名稱

Specifies the display name for the User Profile Service application. The name that you use must be a unique name of a User Profile Service application in this farm. The name can be a maximum of 128 characters.

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

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