Share via


dfsdiag testdfsintegrity

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

執行下列測試,檢查分散式檔案系統 (DFS) 命名空間的完整性:

  • 檢查網域控制站之間的 DFS 中繼資料損毀或不一致。

  • 驗證存取型列舉的組態,以確保 DFS 中繼資料與命名空間伺服器共享之間一致。

  • 偵測重疊的 DFS 資料夾 (連結)、重複的資料夾,以及具有重疊資料夾目標的資料夾。

語法

dfsdiag /testdfsintegrity /DFSroot: <DFS root path> [/recurse] [/full]

參數

參數 描述
/DFSroot: <DFS root path> 要診斷的 DFS 命名空間。
/recurse 執行測試,包括任何命名空間互連。
/full 驗證共用和 NTFS ACL 以及所有資料夾目標上的客戶端組態的一致性。 它還會驗證是否已設定線上屬性。

範例

若要確認 contoso.com\MyNamespace 中分散式檔案系統 (DFS) 命名空間的完整性和一致性,包括任何互連,請輸入:

dfsdiag /testdfsintegrity /DFSRoot:\contoso.com\MyNamespace /recurse /full