Start-SPProfileServiceRecoveryReplication
适用于: SharePoint Server 2010
上一次修改主题: 2015-03-09
恢复完整复制配置文件期间未能复制的用户配置文件。此 cmdlet 将复制并覆盖指定配置文件的目标 User Profile Service 应用程序中的所有用户配置文件属性。
Syntax
Start-SPProfileServiceRecoveryReplication -Destination <String> -FileName <String> -Source <String> [-DoSocialReplication <SwitchParameter>] [-DoUpgrade <SwitchParameter>] [-EnableInstrumentation <SwitchParameter>] [-MatchSubtype <SwitchParameter>] [-Properties <String[]>] [-Timeout <Int32>]
详细说明
Start-SPProfileServiceRecoveryReplication cmdlet 可复制完整复制配置文件期间未能复制的用户配置文件的相关用户配置文件信息和社会数据(包括社会性标签、注释和评级)。这些用户配置文件帐户的列表将保存到在完整复制配置文件期间创建的帐户文件中。配置文件信息和社会数据将从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。
Parameters
参数 | 是否必需 | 类型 | 描述 |
---|---|---|---|
Destination |
必需 |
System.String |
指定要向其中复制用户配置文件的“我的网站”宿主的 URL,例如 http://euro.contoso.com:8081/my。 |
FileName |
必需 |
System.String |
指定帐户文件的位置。此文件可以是完整复制过程中创建的失败的帐户文件,也可以是您手动创建的、每行包含一个用户配置文件帐户的 .txt 或 .rcv 文件,例如:Domain1\User1Domain1\User2Domain2\User1Domain2\User2Domain2\User3。 |
Source |
必需 |
System.String |
指定从中检索用户配置文件的“我的网站”宿主的 URL,例如 http://hq.contoso.com:8081/my。 |
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 |
允许使用设备日志进行详细日志记录。 |
MatchSubtype |
可选 |
System.Management.Automation.SwitchParameter |
通过将目标配置文件属性用作筛选器,来防止源和目标配置文件属性之间出现不匹配。出于性能原因,建议您仅在源 User Profile Service 应用程序和目标 User Profile Service 应用程序之间的大多数用户配置文件属性均不匹配时,才使用该参数。 |
Properties |
可选 |
System.String[] |
指定要复制的用户配置文件属性,例如“FirstName”或“AboutMe”。还可以使用 Get-SPProfilePropertyCollection cmdlet 返回所有用户配置文件属性的集合。默认值返回所有用户配置文件属性。 |
Timeout |
可选 |
System.Int32 |
指定超时前“用户配置文件复制引擎”应等待 Web 服务响应的时间。默认值为 Web 服务超时。 |
输入类型
返回类型
Example
----------示例----------
get-spprofilepropertycollection -source http://euro.contoso.com:8081 | start-spprofileservicerecoveryreplication -source http://hq.contoso.com:8081 -destination http://euro.contoso.com:8081 -EnableInstrumentation -FileName "d:\accounts.txt"
此示例检索增量复制配置文件期间未能复制的用户配置文件的列表,并将用户配置文件信息和社会数据从源 User Profile Service 应用程序复制到目标 User Profile Service 应用程序。
See Also
Reference
Get-SPProfilePropertyCollection
Start-SPProfileServiceFullReplication
Start-SPProfileServiceIncrementalReplication
Stop-SPProfileServiceIncrementalReplication