您可以使用設定檔移轉命令,將移轉組態檔指定為命令列選項。在組態檔中,您可以指定來源和目標設定檔位置等設定,而這些設定會在執行階段傳遞至設定檔移轉公用程式。

移轉組態檔為選用。您可以輸入對應的命令列選項來覆寫組態檔中指定的設定。

移轉組態檔格式

移轉組態檔為 XML 格式,因此檔案可以輕鬆讀取、編輯和延伸。如需設定的定義,請參閱移轉組態檔設定

您可以執行 V1 至 V2 的移轉或 V2 至 V5 的移轉。您無法在相同的組態檔中執行這兩個移轉路徑。

您可以在 source 標記中指定要將 V1 設定檔移轉至 V2,或是將 V2 設定檔移轉至 V5。在組態檔中僅應使用一個 source 標記。

<migconfig takeownership="takeownership_value">
  
  <!-- specify the source V1 profiles to be migrated -->
  <source>
    <!-- specify the location of user profiles to be migrated --> 
    <profilepath>source_profile_path</profilepath>
  </source>

  <!-- OR -->

  <!-- specify the source V2 profiles to be migrated -->
  <source>
    <!-- specify the location of user profiles to be migrated -->
    <profilepath>source_profile_path</profilepath>
    <!-- specify a V2-to-V5 profile migration -->
    <migv2tov5>true</migv2tov5> 
  </source>
  
  <!-- specify the target destination of converted V2 or V5 profiles -->
  <target>
    <profilepath>target_profile_path</profilepath>
  </target>
  
  <!-- specify other profile migration settings -->
  <migration>
  
    <!-- migration settings for profile folders and files -->
    <profile>
      <!-- by default, all top-level profile folders are included -->
      <!-- except 'Cache', 'History', & 'Local AppData' -->
      <includeolders>included_profile_folders</includefolders>
      <excludefolders>excluded_profile_folders</excludefolders>
    </profile>
    
    <!-- migration settings for profile registry hive -->
    <registry [disabled="1"]>
      <!-- by default, no registry keys are converted -->
      <includekeys>included_registry_keys</includekeys>
      <excludekeys>excluded_registry_keys</excludekeys>
    </registry>
    
  </migration>
  
</migconfig>