設定轉介中目標的排序方法Set the Ordering Method for Targets in Referrals

適用於: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

轉介是排序的目標清單,當使用者存取命名空間根目錄或包含目標的資料夾時,用戶端電腦會從網域控制站或命名空間伺服器收到轉介。A referral is an ordered list of targets that a client computer receives from a domain controller or namespace server when the user accesses a namespace root or folder with targets. 當用戶端接收轉介之後,用戶端會嘗試存取清單中的第一個目標。After the client receives the referral, the client attempts to access the first target in the list. 如果目標無法使用,用戶端會嘗試存取下一個目標。If the target is not available, the client attempts to access the next target. 用戶端站台上的目標一定會在轉介中優先列出。Targets on the client's site are always listed first in a referral. 用戶端站台外的目標則根據排序方法列出。Targets outside of the client's site are listed according to the ordering method.

請使用下列章節來指定將目標轉介給用戶端的順序,以及了解排序目標轉介的不同方法:Use the following sections to specify in what order targets should be referred to clients and to understand the different methods of ordering target referrals:

若要設定命名空間根目錄轉介中目標的排序方法To set the ordering method for targets in namespace root referrals

使用下列程序來設定命名空間根目錄的排序方法:Use the following procedure to set the ordering method on the 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 an ordering method.

注意

若要使用 Windows PowerShell 來設定命名空間根目錄轉介中的目標排序方法,請使用 Set-DfsnRoot Cmdlet 並搭配下列其中一個參數:To use Windows PowerShell to set the ordering method for targets in namespace root referrals, use the Set-DfsnRoot cmdlet with one of the following parameters:

  • EnableSiteCosting 指定最低成本排序方法EnableSiteCosting specifies the Lowest cost ordering method
  • EnableInsiteReferrals 指定排除用戶端站台外的目標排序方法。EnableInsiteReferrals specifies the Exclude targets outside of the client's site ordering method
  • 省略任一參數則指定隨機順序轉介排序方法。Omitting either parameter specifies the Random order referral ordering method.

DFSN Windows PowerShell 模組於 Windows Server 2012 中引進。The DFSN Windows PowerShell module was introduced in Windows Server 2012.

若要設定資料夾轉介中目標的排序方法To set the ordering method for targets in folder referrals

含目標的資料夾會繼承命名空間根目錄的排序方法。Folders with targets inherit the ordering method from the namespace root. 您可以使用下列程序來覆寫排序方法:You can override the ordering method by using the following procedure:

  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, select the Exclude targets outside of the client's site check box.

注意

若要使用 Windows PowerShell 來排除用戶端站台外的資料夾目標,請使用 Set-DfsnFolder –EnableInsiteReferrals Cmdlet。To use Windows PowerShell to exclude folder targets outside of the client's site, use the Set-DfsnFolder –EnableInsiteReferrals cmdlet.

目標轉介排序方法Target referral ordering methods

三個排序方法如下:The three ordering methods are:

  • 隨機Random order
  • 最低成本Lowest cost
  • 排除用戶端站台外的目標Exclude targets outside of the client's site

隨機Random order

在這種方法中,目標的排序如下所示:In this method, targets are ordered as follows:

  1. 與用戶端相同 Active Directory Directory Services (AD DS) 站台中的目標,依隨機順序列在轉介頂端。Targets in the same Active Directory Directory Services (AD DS) site as the client are listed in random order at the top of the referral.
  2. 用戶端站台外的目標隨機列出。Targets outside of the client's site are listed in random order.

如果沒有相同站台的目標伺服器可供使用,用戶端電腦會被轉介至隨機的目標伺服器,不考慮連線多昂貴或目標的距離多遠。If no same-site target servers are available, the client computer is referred to a random target server regardless of how expensive the connection is or how distant the target.

最低成本Lowest cost

在這種方法中,目標的排序如下所示:In this method, targets are ordered as follows:

  1. 位於相同站台的目標,依隨機順序列在轉介頂端。Targets in the same site as the client are listed in random order at the top of the referral.
  2. 用戶端站台外的目標則依最低成本到最高成本列出。Targets outside of the client's site are listed in order of lowest cost to highest cost. 具有相同成本的轉介分在同一組,每個群組中隨機列出目標。Referrals with the same cost are grouped together, and the targets are listed in random order within each group.

注意

DFS 管理嵌入式管理單元中不會顯示站台連結成本。Site link costs are not shown in the DFS Management snap-in. 若要檢視站台連結成本,請使用 Active Directory 站台及服務嵌入式管理單。To view site link costs, use the Active Directory Sites and Services snap-in.

排除用戶端站台外的目標Exclude targets outside of the client's site

在這種方法中,轉介僅包含位於與用戶端相同站台中的目標。In this method, the referral contains only the targets that are in the same site as the client. 這些相同站台目標隨機列出。These same-site targets are listed in random order. 如果不存在相同站台目標,用戶端不會收到轉介,也無法存取該部分的命名空間。If no same-site targets exist, the client does not receive a referral and cannot access that portion of the namespace.

注意

即使排序方法為 [排除用戶端站台外的目標],目標優先順序設定為 [所有目標中的第一個目標] 或 [所有目標中的最後一個目標] 的目標仍會列在轉介中。Targets that have target priority set to "First among all targets" or "Last among all targets" are still listed in the referral, even if the ordering method is set to Exclude targets outside of the client's site.

請參閱See also