How to Move Users Folder to another Location in Windows 10




<?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="" xmlns:xsi="">

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:


Almost there! Open elevated Command Prompt (tutorial). To ensure that WMP Network Sharing Service is stopped, give the following command:
管理者用コマンドプロンプトを立ち上げ、以下のコマンドにて、WMP Network Sharing Service を確実に停止させること。

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