• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Windows to go 慢,更换 user profile 路径

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

用 wintousb 安装了 windwos 10 到 u盘 之后,

发觉这个windows 贼慢,卡的不行。

想起以前台式机上用【太阳花】SDD,硬盘满了也是这个感觉的。 就知道 C盘的userprofile的读写操作是个瓶颈。

 

因为T450上装了ubuntu之后,还有个5G的windows 急救空间。 删了之后就给windows to go 用了。

这样,问题就是,怎么把C盘的user profile 移动到 5G的E盘上了。

 

找到了,非常简单的方法。

(用了之后才感觉到,简直就像在重装系统,幸亏东西都还好好的留着,user profile 也切过去了)

 

https://www.tenforums.com/tutorials/1964-move-users-folder-location-windows-10-a.html

2. Create an unattended answer file

If you installed Windows without a network connection, you can connect to network now.

The relocation procedure itself will be done with a native Windows 10 tool called System Preparation Tool (Sysprep). Sysprep alone can quite little, it needs instructions. These instructions it gets from an XML script file, an unattended answer file.

In our case we need a very simple answer file. It simply contains two important details, instructions to Sysprep:

  • Bit version of the Windows (32 or 64 bit)
  • New location of Users folder (for example D:\Users instead of default C:\Users)



OK, let\'s start. Open Notepad, paste the following code to a new file:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<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>
</unattend>

Change the following details if needed (see the parts in red in above code):

    • Line 4: The value of variable ProcessorArchitecture must be amd64 if you are installing a 64 bit Windows regardless of if you have an Intel or AMD processor, and x86 if you are installing a 32 bit Windows
    • Line 6: The value in ProfilesDirectory tags is the new location for the Users folder, in this example answer file it will be moved to D:\Users.Be sure that the drive into which you are relocating the Users folder is empty or at least does not contain any Windows system folders, especially Users folder or parts of it from any current or previous Windows installation

 

Save the file as an XML file to root of any drive except C:. In this example I have already renamed my D: drive to User Profiles and save the answer file there as D:\relocate.xml:

 

3. Run Sysprep

Almost there! Open elevated Command Prompt (tutorial). To ensure that WMP Network Sharing Service is stopped, give the following command:

net stop wmpnetworksvc

The service is most probably not running but if it is, it will now be stopped. When this service is running, Sysprep fails.

Now the Sysprep command itself. Type the following:

%windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:d:\relocate.xml

 

最后,经过艰难的重启,以及额外创建了一个用户之后,性能明显提高了不少。

希望这可以给买不起高速U盘,安装 windows to go 的朋友一个性价比很高的方案。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
利用U盘制作Win To Go发布时间:2022-07-10
下一篇:
GO --微服务框架(二) goa发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap