FolderLocations

設定 FolderLocations 會指定使用者設定檔和程式資料檔案夾的位置。

子元素

設定 描述
ProfilesDirectory 指定使用者設定檔資料夾的路徑。
ProgramData 指定 program-data 資料夾的路徑。

警告

只在測試環境中使用此設定。 如果您將程式資料檔案夾的預設位置變更為系統磁片區以外的磁片區,則無法服務映射。 任何更新、修正或 Service Pack 都可能不會套用至安裝。

有效的設定階段

oobeSystem

父階層

Microsoft-Windows-Shell-Setup | FolderLocations

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-Shell-Setup

XML 範例

下列 XML 範例示範如何將路徑設定為資料夾位置。

<FolderLocations>
   <ProfilesDirectory>%SYSTEMDRIVE%\Profiles</ProfilesDirectory>
</FolderLocations>

Microsoft-Windows-Shell-Setup