Share via


dfsdiag testsites

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

藉由驗證做為命名空間伺服器或資料夾 (連結) 目標的伺服器在所有網域控制站上是否具有相同的站台關聯,以檢查 Active Directory 網域服務 (AD DS) 網站的設定。

語法

dfsdiag /testsites </machine:<server name>| /DFSpath:<namespace root or DFS folder> [/recurse]> [/full]

參數

參數 描述
/machine:<server name> 要驗證站台關聯之伺服器的名稱。
/DFSpath:<namespace root or DFS folder> 命名空間根目錄或分散式檔案系統 (DFS) 資料夾 (連結) 與要驗證站台關聯的目標。
/recurse 列舉並驗證指定命名空間根目錄下所有資料夾目標的站台關聯。
/full 確認 AD DS 和伺服器的登錄包含相同的站台關聯資訊。

範例

若要檢查 machine\MyServer 上的站台關聯,請輸入:

dfsdiag /testsites /machine:MyServer

若要檢查分散式檔系統 (DFS) 資料夾來驗證站台關聯,並確認 AD DS 和伺服器的登錄包含相同的站台關聯資訊,請輸入:

dfsdiag /TestSites /DFSpath:\\contoso.com\namespace1\folder1 /full

若要檢查命名空間根目錄來驗證站台關聯,同時列舉和驗證指定命名空間根目錄下所有資料夾目標的站台關聯,並確認 AD DS 和伺服器的登錄包含相同的站台關聯資訊,請輸入:

dfsdiag /testsites /DFSpath:\\contoso.com\namespace2 /recurse /full