Start-SPProfileServiceIncrementalReplication

 

适用于: SharePoint Server 2010

上一次修改主题: 2016-11-30

使用“复制引擎”Windows 服务将对选定配置文件属性所做的更改从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。

Syntax

Start-SPProfileServiceIncrementalReplication -Destination <String[]> -Source <String> [-ActiveDirectoryDomains <String[]>] [-Credential <PSCredential>] [-DoSocialReplication <SwitchParameter>] [-DoUpgrade <SwitchParameter>] [-EnableInstrumentation <SwitchParameter>] [-FeedProperties <String[]>] [-MatchSubtype <SwitchParameter>] [-NumberOfRetry <Int32>] [-Properties <String[]>] [-ReplicationInterval <Int32>] [-Timeout <Int32>] [-WaitTimeBetweenFailures <Int32>]

详细说明

Start-SPProfileServiceIncrementalReplication cmdlet 可将对有关选定用户配置文件属性的用户配置文件信息和社会数据(包括社会性标签、注释和评级)所做的全部更改从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。首次运行此 cmdlet 时,必须提供“用户配置文件复制引擎”Windows 服务的凭据。可以使用 Get-credentials cmdlet 检索这些凭据。开始复制后,您可以查看设备日志以确认是否包含所有更改。

如果因任何原因需要停止配置文件增量复制,可使用 Stop-SPProfileServiceIncrementalReplication cmdlet 进行停止。不要通过使用 Windows MMC 管理单元手动启动或停止“User Profile Service 复制引擎”Windows 服务,来启动或停止配置文件增量复制。

必须已在管理中心中使用“User Profile Service 管理”网页配置受信任的“我的网站”宿主位置。有关如何配置受信任的“我的网站”宿主位置的其他信息,请参阅添加或删除受信任的“我的网站”宿主位置 (SharePoint Server 2010)

Parameters

参数 是否必需 类型 描述

Destination

必需

System.String

指定要向其中复制用户配置文件的“我的网站”宿主的 URL,例如 http://euro.contoso.com:8081/my。

Source

必需

System.String

指定从中检索用户配置文件的“我的网站”宿主的 URL,例如 http://hq.contoso.com:8081/my。

ActiveDirectoryDomains

可选

System.String[]

指定要复制的 Active Directory 域服务 (AD DS) 帐户,例如“headquarters”或“Europe”。默认值返回所有 AD DS 域。

Credential

可选

System.Management.Automation.PSCredential

请在首次运行此 cmdlet 或希望更改“复制引擎”服务凭据时指定“用户配置文件复制引擎”Windows 服务凭据。若要获取“用户配置文件复制引擎”Windows 服务凭据,请使用 Get-Credential cmdlet。有关详细信息,请参阅 Get-Credential (https://go.microsoft.com/fwlink/?linkid=113311&clcid=0x804)。

DoSocialReplication

可选

System.Management.Automation.SwitchParameter

允许复制社会性标签、注释和评级。仅当源 User Profile Service 应用程序和目标 User Profile Service 应用程序都基于 Microsoft SharePoint Server 2010 时,才应使用该参数。

DoUpgrade

可选

System.Management.Automation.SwitchParameter

允许替换社会分类中的无效字符。如果源应用程序是 Office SharePoint Server 2007 User Profile SSP,目标应用程序是 SharePoint Server 2010 User Profile Service 应用程序,则必须使用该属性。

EnableInstrumentation

可选

System.Management.Automation.SwitchParameter

允许使用设备日志进行详细日志记录。

FeedProperties

可选

System.String[]

指定在复制指定用户配置文件属性更改时应忽略受信任的“我的网站”宿主位置列表。

MatchSubtype

可选

System.Management.Automation.SwitchParameter

通过将目标配置文件属性用作筛选器,来防止源和目标配置文件属性之间出现不匹配。出于性能原因,建议您仅在源 User Profile Service 应用程序和目标 User Profile Service 应用程序之间的大多数用户配置文件属性均不匹配时,才使用该参数。

NumberOfRetry

可选

System.Int32

指定“用户配置文件复制引擎”在遇到故障(例如,网络中断)时应尝试重新启动的次数。默认值为 10。

Properties

可选

System.String[]

指定要复制的用户配置文件属性,例如“FirstName”或“AboutMe”。还可以使用 Get-SPProfilePropertyCollection cmdlet 返回所有用户配置文件属性的集合。默认值返回所有用户配置文件属性。

ReplicationInterval

可选

System.Int32

指定每个复制迭代之间间隔的时间(以秒为单位)。默认值为 5。

Timeout

可选

System.Int32

指定超时前“用户配置文件复制引擎”应等待 Web 服务响应的时间。默认值为 Web 服务超时。

WaitTimeBetweenFailures

可选

System.Int32

指定“用户配置文件复制引擎”在复制用户配置文件失败后应等待多长时间(以秒为单位),然后才开始 Start-SPProfileServiceRecoveryReplication 进程。默认值为 300。

输入类型

返回类型

Example

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

get-spprofilepropertycollection -source http://euro.contoso.com:8081 | start-spprofileserviceincrementalreplication -source http://hq.contoso.com:8081 -destination http://euro.contoso.com:8081 -EnableInstrumentation -Credential $mycredential

此示例将对所有用户配置文件属性所做的所有更改从 hq.contoso.com 复制到 euro.contoso.com,并在设备日志中跟踪这些更改。

See Also

Reference

Get-SPProfilePropertyCollection
Start-SPProfileServiceFullReplication
Start-SPProfileServiceRecoveryReplication
Stop-SPProfileServiceIncrementalReplication

Concepts

用户配置文件复制引擎概述 (SharePoint Server 2010)