將網域型命名空間移轉到 Windows Server 2008 模式Migrate a domain-based namespace to Windows Server 2008 Mode

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

網域型命名空間的 Windows Server 2008 模式包含支援存取型列舉和提高延展性。The Windows Server 2008 mode for domain-based namespaces includes support for access-based enumeration and increased scalability.

若要將網域型命名空間移轉到 Windows Server 2008 模式To migrate a domain-based namespace to Windows Server 2008 mode

若要將網域型命名空間從 Windows 2000 Server 模式移轉到 Windows Server 2008 模式,您必須將命名空間匯出至檔案、刪除命名空間、在 Windows Server 2008 模式中重新建立它,然後匯入命名空間設定。To migrate a domain-based namespace from Windows 2000 Server mode to Windows Server 2008 mode, you must export the namespace to a file, delete the namespace, re-create it in Windows Server 2008 mode, and then import the namespace settings. 若要這樣做,請使用下列程序:To do so, use the following procedure:

  1. 開啟命令提示字元視窗並輸入下列命令,以將命名空間匯出至檔案,其中 \*domain\namespace* 是適當網域的名稱,而 path\filename 是匯出檔案的路徑和檔案名稱:Open a Command Prompt window and type the following command to export the namespace to a file, where \\domain\namespace is the name of the appropriate domain, and namespace and path\filename is the path and file name of the file for export: Dfsutil root export \\domain\namespace path\filename.xml
  2. 記下每個命名空間伺服器的路徑 (\*server* \share)。Write down the path ( \\server \share ) for each namespace server. 您必須手動新增命名空間伺服器至重新建立的命名空間,因為 Dfsutil 無法匯入命名空間伺服器。You must manually add namespace servers to the re-created namespace because Dfsutil cannot import namespace servers.
  3. 在 DFS 管理中,在命名空間上按一下滑鼠右鍵,然後按一下 [刪除],或在命令提示字元中輸入下列命令,In DFS Management, right-click the namespace and then click Delete, or type the following command at a command prompt,
    其中 \\domain\namespace 是適當的網域和命名空間名稱:where \\domain\namespace is the name of the appropriate domain and namespace: Dfsutil root remove \\domain\namespace
  4. 在 DFS 管理中,使用相同的名稱重新建立命名空間,但改為使用 Windows Server 2008 模式,或在命令提示字元中輸入下列命令,其中In DFS Management, re-create the namespace with the same name, but use the Windows Server 2008 mode, or type the following command at a command prompt, where
    \\server\namespace 是命名空間根目錄的適當伺服器與共用的名稱:\\server\namespace is the name of the appropriate server and share for the namespace root: Dfsutil root adddom \\server\namespace v2
  5. 若要從匯出檔案匯入命名空間,請在命令提示字元中輸入下列命令,其中To import the namespace from the export file, type the following command at a command prompt, where
    \\domain\namespace 是適當的網域與命名空間的名稱,而 path\filename 是要匯入之檔案的路徑與檔案名稱:\\domain\namespace is the name of the appropriate domain and namespace and path\filename is the path and file name of the file to import:

    Dfsutil root import merge path\filename.xml \\domain\namespace
    

    注意

    若要將匯入大型命名空間所需的時間降至最低,請在命名空間伺服器的本機上執行 Dfsutil 根匯入命令。To minimize the time required to import a large namespace, run the Dfsutil root import command locally on a namespace server.

  6. 將任何其他命名空間伺服器新增至重新建立的命名空間,方法是在 DFS 管理的命名空間上按一下滑鼠右鍵,然後按一下 [新增命名空間伺服器],或在命令提示字元中輸入下列命令,其中Add any remaining namespace servers to the re-created namespace by right-clicking the namespace in DFS Management and then clicking Add Namespace Server, or by typing the following command at a command prompt, where
    \\server\share 是命名空間根目錄的適當伺服器與共用的名稱:\\server\share is the name of the appropriate server and share for the namespace root:

    Dfsutil target add \\server\share 
    

    注意

    您可以在匯入命名空間之前先新增命名空間伺服器,但這樣做會導致命名空間伺服器在新增命名空間伺服器之後,以遞增方式下載命名空間的中繼資料,而非立即下載整個命名空間。You can add namespace servers before importing the namespace, but doing so causes the namespace servers to incrementally download the metadata for the namespace instead of immediately downloading the entire namespace after being added as a namespace server.

請參閱See also