大网数据广告活动
Windows排障命令

dfsdiag testreferral

· 52CE 我爱测

Reference article for the dfsdiag testreferral command, which checks Distributed File System (DFS) referrals.

Checks Distributed File System (DFS) referrals by performing the following tests:

  • If you use the DFSpath* parameter without arguments, the command validates that the referral list includes all trusted domains.

  • If you specify a domain, the command performs a health check of domain controllers (dfsdiag /testdcs) and tests the site associations and domain cache of the local host.

  • If you specify a domain and \SYSvol or \NETLOGON, the command performs the same domain controller health checks, along with checking that the time To Live (TTL) of SYSvol or NETLOGON referrals matches the default value of 900 seconds.

  • If you specify a namespace root, the command performs the same domain controller health checks, along with performing a DFS configuration check (dfsdiag /testdfsconfig) and a namespace integrity check (dfsdiag /testdfsintegrity).

  • If you specify a DFS folder (link), the command performs the same namespace root health checks, along with validating the site configuration for folder targets (dfsdiag /testsites) and validating the site association of the local host.

Syntax

dfsdiag /testreferral /DFSpath:<DFS path to get referrals> [/full]

Parameters

Parameter Description
/DFSpath:<path to get referrals> Can be one of the following:<ul><li>Blank: Tests only trusted domains.</li><li>\\Domain: Tests only domain controller referrals.</li><li>\\Domain\SYSvol: Tests only SYSvol referrals.</li><li>\\Domain\NETLOGON: Tests only NETLOGON referrals.</li><li>\\<domain or server>\<namespace root>: Tests only namespace root referrals.</li><li>\\<domain or server>\<namespace root>\<DFS folder>: Tests only the DFS folder (link) referrals.</li></ul>
/full Applies only to Domain and Root referrals. Verifies the consistency of site association information between the registry and active directory Domain Services (AD DS).

Examples

To check the Distributed File System (DFS) referrals in contoso.com\MyNamespace, type:

dfsdiag /testreferral /DFSpath:\\contoso.com\MyNamespace

To check the Distributed File System (DFS) referrals in all trusted domains, type:

dfsdiag /testreferral /DFSpath:

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。