设置目标优先级以替代引用排序Set target priority to override referral ordering

适用于: Windows Server 2019,Windows Server (半年通道) ,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012,Windows Server 2008 R2,Windows Server 2008Applies to: Windows Server 2019, 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 in the namespace. 引用中每个目标根据命名空间根路径或文件夹的排序方法进行排序。Each target in a referral is ordered according to the ordering method for the namespace root or folder.

若要优化目标的排序方式,可为各个目标设置优先级。To refine how targets are ordered, you can set priority on individual targets. 例如,可以指定该目标是所有目标中的第一项、所有目标中的最后一项,或成本相等的所有目标中的第一项或最后一项。For example, you can specify that the target is first among all targets, last among all targets, or first or last among all targets of equal cost.

为基于域的命名空间的根目标设置目标优先级的步骤To set target priority on a root target for a domain-based namespace

若要为基于域的命名空间中的根目录目标设置目标优先级,请按照以下过程操作:To set target priority on a root target for a domain-based namespace, use 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, click the domain-based namespace for the root targets for which you want to set priority.

  3. 详细信息窗格中的命名空间服务器选项卡上,右键单击要更改其优先级的根目录目标,然后单击属性In the Details pane, on the Namespace Servers tab, right-click the root target with the priority that you want to change, and then click Properties.

  4. 高级选项卡上,单击替代引用排序,然后单击所需的优先级。On the Advanced tab, click Override referral ordering, and then click the priority you want.

    • 所有目标中的第一项 指定如果目标可用,用户应始终被引用到此目标。First among all targets Specifies that users should always be referred to this target if the target is available.
    • 所有目标中的最后一项 指定用户绝不被引用到此目标,除非所有其他目标不可用。Last among all targets Specifies that users should never be referred to this target unless all other targets are unavailable.
    • 同等开销目标中的第一项 指定用户应被引用到成本相等的其他目标(通常指同一站点中的其他目标)之前的此目标。First among targets of equal cost Specifies that users should be referred to this target before other targets of equal cost (which usually means other targets in the same site).
    • 成本相等的目标中的最后一项 指定如果存在成本相等的其他目标(通常指同一站点中的其他目标),用户绝不被引用到此目标。Last among targets of equal cost Specifies that users should never be referred to this target if there are other targets of equal cost available (which usually means other targets in the same site).

为文件夹目标设置目标优先级的步骤To set target priority on a folder target

若要为文件夹目标设置目标优先级,请按照以下过程操作:To set target priority on a folder target, use 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, click the folder of the targets for which you want to set priority.

  3. 详细信息窗格中的文件夹目标选项卡上,右键单击要更改其优先级的文件夹目标,然后单击属性In the Details pane, on the Folder Targets tab, right-click the folder target with the priority that you want to change, and then click Properties .

  4. 高级选项卡上,单击替代引用排序,然后单击所需的优先级。On the Advanced tab, click Override referral ordering and then click the priority that you want.

备注

若要使用 Windows PowerShell 设置目标优先级,请将 Set-DfsnRootTargetSet-DfsnFolderTarget cmdlet 与 ReferralPriorityClassReferralPriorityRank 参数结合使用。To set target priorities by using Windows PowerShell, use the Set-DfsnRootTarget and Set-DfsnFolderTarget cmdlets with the ReferralPriorityClass and ReferralPriorityRank parameters. Windows Server 2012 中引入了这些 cmdlet。These cmdlets were introduced in Windows Server 2012.

其他参考Additional References