
在我使用此回應檔案移動 C:\Users 目錄後:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CopyProfile>true</CopyProfile>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>D:\Users\</ProfilesDirectory>
</FolderLocations>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:e:/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
還有這個命令
%windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:d:\relocate.xml
我能夠在 OOBE 中建立新帳戶,並且所有現有帳戶都已成功移至 D: 裝置(raid0)。執行此 sysprep 後,不再使用資料夾 C:\Users,所有設定檔均移至 D:\Users。
然而,在新情況下,Win+X 或右鍵單擊 Windows 開始按鈕都不會執行任何操作。這是否相關?
答案1
您實際上無法移動所有 C:\Users\juusername\AppData。
那裡的一些數據不能輕易移動,也就是說移動可能會破壞一些東西。
你考慮到這一點了嗎?這也許就是為什麼有些事情不起作用的原因。
由於移動,您可能會出現使用者設定檔錯誤。
您通常不會在 sysprep 之前設定用戶配置文件,我認為這就是錯誤所在。