Set-SPProfileServiceApplicationProxy

设置 User Profile Service 应用程序代理的属性。

语法

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

说明

Set-SPProfileServiceApplicationProxy cmdlet 设置用户配置文件服务应用程序的代理的属性。

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

示例

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

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

本示例将用户配置文件服务应用程序代理设置为使用网站命名冲突解决来使用以用户名为前缀的域名。

参数

-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

-DefaultProxyGroup

指定将 User Profile Service 应用程序代理添加到本地服务器场的默认代理组。

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 应用程序代理。

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

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

-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.

键入的值必须为有效服务应用程序代理的名称;例如 UserProfileSvcProxy1。

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