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

Concepts

使用者設定檔複製引擎概觀 (SharePoint Server 2010)