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)