啟用或停用轉介和用戶端容錯回復Enable or Disable Referrals and Client Failback

適用於: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, Windows Server 2008

轉介是伺服器的排序清單,當使用者存取命名空間根目錄或包含目標的 DFS 資料夾時,用戶端電腦就會收到來自網域控制站或命名空間伺服器的轉介。A referral is an ordered list of servers that a client computer receives from a domain controller or namespace server when the user accesses a namespace root or DFS folder with targets. 電腦接收轉介之後,就會嘗試存取清單中的第一部伺服器。After the computer receives the referral, the computer attempts to access the first server in the list. 如果伺服器無法使用,用戶端電腦就會嘗試存取下一部伺服器。If the server is not available, the client computer attempts to access the next server. 如果伺服器變得無法使用,則可將用戶端設定成在恢復可用之後容錯回復到偏好的伺服器。If a server becomes unavailable, you can configure clients to fail back to the preferred server after it becomes available.

下列章節提供如何啟用或停用轉介和用戶端容錯回復的相關資訊:The following sections provide information about how to enable or disable referrals or enable client failback:

啟用或停用轉介Enable or disable referrals

透過停用命名空間伺服器或資料夾目標的轉介,可以防止使用者導向到該命名空間伺服器或資料夾目標。By disabling a namespace server's or folder target's referral, you can prevent users from being directed to that namespace server or folder target. 這個方法在您需要暫時將伺服器離線進行維護時相當實用。This is useful if you need to temporarily take a server offline for maintenance.

  • 若要啟用或停用轉介至資料夾目標,請使用下列步驟:To enable or disable referrals to a folder target, use the following steps:

    1. 在 [DFS 管理] 主控台樹狀目錄的 [命名空間] 節點之下,按一下包含目標的資料夾,然後按一下 [詳細資料] 窗格中的 [資料夾目標] 索引標籤。In the DFS Management console tree, under the Namespaces node, click a folder containing targets, and then click the Folder Targets tab in the Details pane.
    2. 在資料夾目標上按一下滑鼠右鍵,然後按一下 [停用資料夾目標][啟用資料夾目標]Right-click the folder target, and then click either Disable Folder Target or Enable Folder Target.
  • 若要啟用或停用轉介至命名空間伺服器,請使用下列步驟:To enable or disable referrals to a namespace server, use the following steps:

    1. 在 [DFS 管理] 主控台樹狀目錄中,選取適當的命名空間,然後按一下 [命名空間伺服器] 索引標籤。In the DFS Management console tree, select the appropriate namespace and then click the Namespace Servers tab.
    2. 在適當的命名空間伺服器上按一下滑鼠右鍵,然後按一下 [停用命名空間伺服器][啟用命名空間伺服器]Right-click the appropriate namespace server and then click either Disable Namespace Server or Enable Namespace Server.

提示

若要使用 Windows PowerShell 來啟用或停用轉介,請使用 Set-DfsnRootTarget –StateSet-DfsnServerConfiguration Cmdlet,這些命令已在 Windows Server 2012 中引進。To enable or disable referrals by using Windows PowerShell, use the Set-DfsnRootTarget –State or Set-DfsnServerConfiguration cmdlets, which were introduced in Windows Server 2012.

啟用用戶端容錯回復Enable client failback

如果目標變得無法使用,則可將用戶端設定成當目標還原後錯誤後回復到該目標。If a target becomes unavailable, you can configure clients to fail back to the target after it is restored. 若要執行容錯回復,用戶端電腦必須符合下列主題中列出的需求:檢閱 DFS 命名空間用戶端需求For failback to work, client computers must meet the requirements listed in the following topic: Review DFS Namespaces Client Requirements.

注意

若要使用 Windows PowerShell 來啟用命名空間根目錄上的用戶端容錯回復,請使用 Set-DfsnRoot Cmdlet。To enable client failback on a namespace root by using Windows PowerShell, use the Set-DfsnRoot cmdlet. 若要在 DFS 資料夾上啟用用戶端容錯回復,請使用 Set-DfsnFolder Cmdlet。To enable client failback on a DFS folder, use the Set-DfsnFolder cmdlet.

為命名空間根目錄啟用用戶端容錯回復To enable client failback for a namespace root

  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 namespace, and then click Properties.

  3. [轉介] 索引標籤上,選取 [用戶端容錯回復至慣用目標] 核取方塊。On the Referrals tab, select the Clients fail back to preferred targets check box.

含目標的資料夾會繼承命名空間根目錄中的用戶端容錯回復設定。Folders with targets inherit client failback settings from the namespace root. 如果在命名空間根目錄上停用用戶端容錯回復,則可使用下列程序讓用戶端容錯回復到含目標的資料夾。If client failback is disabled on the namespace root, you can use the following procedure to enable the client to fail back on a folder with targets.

為含目標的資料夾啟用用戶端容錯回復To enable client failback for a folder with targets

  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 with targets, and then click Properties.

  3. [轉介] 索引標籤上,按一下 [用戶端容錯回復至慣用目標] 核取方塊。On the Referrals tab, click the Clients fail back to preferred targets check box.

請參閱See also