|
|
安装时改变用户文件位置(relocate.xml的内容包含链接,没权限发,也发不了附件,你自己搜一下)
1.当 windows 连接到网络的时候有时 Sysprep 会失败,所以建议全程关闭网络连接安装系统
2.安装系统重启后停留在选择地区的配置界面(或其他界面)。
3.进入 Audit Mode
在系统配置选择地区的界面,按下 Ctrl+Shift+F3 ,这时 windows 会重启,进入 Audit Mode ,然后显示一个 System Preparation Tool ,点击取消,将它关闭。
3、 新建relocate.xml(此时可以连接到网络,没必要时还是不要联网)
接下来要使用 System Preparation Tool (Sysprep) 工具来设置用户路径。这个工具会执行一个 xml 文件中的配置(也就是 relocate.xml)
4、运行 Sysprep
以管理员身份运行cmd,首先,关闭 WMP Network Sharing Service 服务:
net stop wmpnetworksvc
然后运行 Sysprep
%windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:d:\relocate.xml
上述命令告诉系统从 Windows\System32\Sysprep 运行 Sysprep,执行 D:/relocate.xml 中的指令,为 OOBE(the firlst boot of newly installed Windows) 重启准备系统,最后重启。
5、完成
完成上述操作后,自动重启进入系统,检查User目录已经移动到了D盘 |
|