• Windows to go 慢,更换 user profile 路径


    用 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: elocate.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%system32sysprepsysprep.exe /oobe /reboot /unattend:d: elocate.xml

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

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

  • 相关阅读:
    精读大道至简01
    mysql查询语句出现sending data耗时解决
    定位线上问题
    docker命令
    .net core2学习笔记
    centos下安装色彩scrapy
    mysql中id值被重置的情况
    MySql中的SHOW INDEX 查出的结果列代表的意义
    ELK安装
    使用PowerDesigner进行面向对象分析与UML建模(转)
  • 原文地址:https://www.cnblogs.com/johnsonshu/p/10306404.html
Copyright © 2020-2023  润新知