Start-SPProfileServiceFullReplication

 

适用于: SharePoint Server 2010

上一次修改主题: 2015-03-09

将所有选定的用户配置文件属性从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。在完成复制之前,“用户配置文件复制引擎”将始终以模式 Windows PowerShell 2.0 cmdlet 运行。

Syntax

Start-SPProfileServiceFullReplication -Destination <String> -Source <String> [-ActiveDirectoryDomains <String[]>] [-DoSocialReplication <SwitchParameter>] [-DoUpgrade <SwitchParameter>] [-EnableInstrumentation <SwitchParameter>] [-MatchSubtype <SwitchParameter>] [-MaxNumberOfThreads <Int32>] [-NumberOfRetry <Int32>] [-Properties <String[]>] [-StartAtIndex <Int32>] [-Timeout <Int32>]

详细说明

Start-SPProfileServiceFullReplication cmdlet 可将所有选定的用户配置文件信息和社会数据(包括社会性标签、注释和评级)从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。将从起始索引处开始复制,按 Ctrl+C 可停止复制。

备注

按下 Ctrl+C 后可能需要几秒钟的时间才能停止所有线程。

如果完整复制被中断,请检查日志文件中的上一次成功复制条目,并使用 StartAtIndex 参数重新启动复制过程。

运行此 cmdlet 的帐户必须是 User Profile Service 应用程序的管理员。

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 域。

DoSocialReplication

可选

System.Management.Automation.SwitchParameter

允许复制社会性标签、注释和评级。仅当源和目标 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

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

MatchSubtype

可选

System.Management.Automation.SwitchParameter

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

MaxNumberOfThreads

可选

System.Int32

指定运行“用户配置文件复制引擎”的服务器上允许的最大复制线程数。默认值为 25。实际的运行线程数将由“用户配置文件复制引擎”动态决定。

NumberOfRetry

可选

System.Int32

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

Properties

可选

System.String[]

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

StartAtIndex

可选

System.Int32

指定应将配置文件数据库中的哪个配置文件索引用作起始索引。默认值为 0。

Timeout

可选

System.Int32

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

输入类型

返回类型

Example

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

get-spprofilepropertycollection -source http://euro.contoso.com:8081 | start-spprofileservicefullreplication -source http://hq.contoso.com:8081 -destination http://euro.contoso.com:8081 -EnableInstrumentation -MaxNumberOfThreads 3 -DoSocialReplication

此示例获取所有用户配置文件属性的集合,并将所有用户配置文件信息和社会数据从 hq.contoso.com 复制到 euro.contoso.com。

See Also

Reference

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

Concepts

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