使用 DFS 複寫來複寫資料夾目標Replicate folder targets using DFS Replication

適用於:Windows Server (半年度管道)、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, and Windows Server 2008

您可以使用 DFS 複寫來保持資料夾目標的內容同步,以便無論用戶端電腦轉介至哪個資料夾目標,使用者都能看到相同的檔案。You can use DFS Replication to keep the contents of folder targets in sync so that users see the same files regardless of which folder target the client computer is referred to.

若要使用 DFS 複寫來複寫資料夾目標To replicate folder targets using DFS Replication

  1. 按一下 [開始],指向 [系統管理工具],然後按一下 [DFS 管理]Click Start, point to Administrative Tools, and then click DFS Management.

  2. 在主控台樹狀目錄的 [命名空間] 節點下,以滑鼠右鍵按一下具有兩個以上資料夾目標的資料夾,然後按一下 [複寫資料夾]In the console tree, under the Namespaces node, right-click a folder that has two or more folder targets, and then click Replicate Folder.

  3. 依照 [複寫資料夾精靈] 中的指示執行。Follow the instructions in the Replicate Folder Wizard.

注意

除非使用 Suspend-DfsReplicationGroupSync-DfsReplicationGroup Cmdlet,否則變更設定不會立即套用所有成員。Configuration changes are not applied immediately to all members except when using the Suspend-DfsReplicationGroup and Sync-DfsReplicationGroup cmdlets. 新的組態必須複寫到所有網域控制站,而且複寫群組中的每個成員必須輪詢其最接近的網域控制站以取得變更。The new configuration must be replicated to all domain controllers, and each member in the replication group must poll its closest domain controller to obtain the changes. 這個動作所花的時間取決於 Active Directory Directory Services (AD DS) 的複寫延遲和每個成員的長輪詢間隔 (60 分鐘)。The amount of time this takes depends on the Active Directory Directory Services (AD DS) replication latency and the long polling interval (60 minutes) on each member. 若要針對組態變更立即輪詢,請開啟命令提示字元視窗,然後針對每個複寫群組成員輸入一次下列命令:To poll immediately for configuration changes, open a Command Prompt window and then type the following command once for each member of the replication group:
dfsrdiag.exe PollAD /Member:DOMAIN\Server1dfsrdiag.exe PollAD /Member:DOMAIN\Server1
若要從 Windows PowerShell 工作階段這樣做,請使用 Update-DfsrConfigurationFromAD Cmdlet,此功能已在 Windows Server 2012 R2 推出。To do so from a Windows PowerShell session, use the Update-DfsrConfigurationFromAD cmdlet, which was introduced in Windows Server 2012 R2.

請參閱See also