Windows 10: Move Users Folder Location in Windows 10  


  1. Posts : 14,411
    Windows 10 Pro
    Thread Starter
       2 Weeks Ago #1210

    sliding said: View Post
    But why does a new C:\Users\username folders get created despite the fact that it has all been moved to another location/drive? Looks like MS persists to use C:\users for some of their programs.
    That is not exactly a consistent system design.
    That is both consistent and logical.

    When you install Windows, Users folder is created on C: drive as any other system folders but no user accounts are created. After Setup has finished, after its last restart, when OOBE starts, Setup creates a temporary user account defaultuser0 to allow OOBE (Windows Welcome) to be run. It will be created in C:\Users.

    Now you will restart to Audit Mode. Because no actual user accounts exists yet, Windows temporarily enables the built-in admin account and signs you in to Audit Mode using it. At this point, system has no knowledge that user profiles will be relocated, so also Administrator user profile will be created in C:\Users.

    When you Sysprep with an answer file which relocates the Users folder to another drive, Windows deletes the current defaultuser0 profile and disables Administrator profile. It then creates the new Users folder on another drive and creates new defaultuser0 profile on that folder, this way allowing you now go through OOBE and create your initial user profile.

    Because Sysprep disabled the built-in admin used in Audit Mode, its profile folders will be emptied but main folder Administrator remains. Windows Setup will not remove the C:\Users folder now because it contains profile folder Administrator, empty at this moment but still existing.

    When user then signs in to desktop first time, temporary defaultuser0 profile will be automatically deleted. It is safe to remove now obsolete C:\Users folder manually. It will be no longer needed.


    roy111 said: View Post
    Given all the work you have done and still do (excellent tutorials and helpful forum posts) I do not see how you could have lost something; you may be no longer referenced as a Most Valuable Promoter but you surely are a

    Most Valuable Person!

    to many users.
    Thanks for your kind words!

    Kari
      My ComputerSystem Spec


  2. Posts : 2
    Win 10 64 bits
       2 Weeks Ago #1211

    Issue with new laptop


    Hi everyone,

    Following this (great) thread I already did the relocation of the Users folder previously on my old desktop and everything went fine.
    Unfortunately this desktop died and I bought a new laptop and I'm facing difficulties to move the folder this time.

    Information :
    . Asus laptop with a SSD M2 and a HDD
    . Windows 10 64 bits 1803 on a USB key
    . Windows licence came with the laptop

    Issue :
    Each time I'm applying the Sysprep, the laptop is rebooting as it should but then the Windows installation restarts from scratch as nothing was done. If I tried to complete the installation, the Users folder is still on C: and there is nothing on D: .

    What I tried :
    . Applying Sysprep with the 2 methods (with crtl+shift+f3 when Cortana speaks for the first time OR with shift+F10 when it's asking to connect to a network)
    . Deleting everything on D:
    . Deleting every partitions on both SSD and HDD (including the manufacturer recovery partition ) to let Windows 10 creates its partitions

    I am a bit short of ideas now...

    Any help would be most welcome...
      My ComputerSystem Spec


  3. Posts : 2
    Win 10 64 bits
       2 Weeks Ago #1212

    Ok... This is nuts but after trying numerous times yesterday I just started the laptop today : it was in the middle of Windows installation. I completed the installation and the Users folder did move on D. ....

    Case closed I guess...
    Thanks again for this topic !
      My ComputerSystem Spec

  4.    1 Week Ago #1213

    Kari said: View Post
    C:\Users\Administrator is useless remnant from when you signed in to Audit Mode using that account. After Sysprep, that profile becomes useless as all profiles have been moved to new location.

    In this case, it is totally safe to delete C:\Users. You can test it easily by enabling built-in administrator account (tutorial) and signing in to it once. After first sign-in, you will see that new user profile folder Administrator will be created on the new location.

    Kari
    Thank you so much for the advice Kari, really appreciate it.
      My ComputerSystem Spec

  5.    1 Week Ago #1214

    Kari,

    Let's see if I have this correct. Running v1803 build 17134.165. Computer is fully backed up. Been running the system on the SSD only. Re-added the HDD back into the system. Fully formatted as a single 2 Tb partition, with only the relocate.xml file on it.

    So I will do Method 2
    Steps to follow?
    1. Activate Built-in Administrator account
    2. Boot to the Administrator account
    3. Start Windows PowerShell in admin mode
    4. Type cmd to get back to the cmd prompt.
    5. Change directory to the window\system32 directory
    6. Type sysprep
    7. Type %windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:d:\relocate.xml using the following relocate.xml 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>

    8. Allow sysprep to run (figure at least a hour or more, alot of files)
    9. Finally get to the OOBE setup
    10.Create a dummy local user
    11. See if ALL users are moved to the new drive.
    12. See that the Administrator acct is still on c:\Users
    13. See that there is a D:\Users
    14. There is still a C:\Users|grace (the active user} with only only 2 folders inside and they cannot be deleted
    15. The D:\Users directory has the public, local acct username, Administrator, default.migrated AND A FOLDER named Documents i.e. D:\Users\Documents\ with the Documents Icon! Inside that directory is the correct folder structure for the active user \grace

    I've included some screenshots, and it I click on the File Explorer bar, I see this: D:\Users\grace,

    Please see the photos!

    Thanks,
    JohnClick image for larger version. 

Name:	2018-08-07 (1)_LI.jpg 
Views:	8 
Size:	397.7 KB 
ID:	198527Click image for larger version. 

Name:	2018-08-07 (2)_LI.jpg 
Views:	9 
Size:	397.1 KB 
ID:	198528Click image for larger version. 

Name:	2018-08-07_LI.jpg 
Views:	7 
Size:	258.2 KB 
ID:	198529
      My ComputerSystem Spec

  6.    1 Week Ago #1215

    Hi Kari, I have done the relocation of the Users folder with MBR partitions. Trying to convert the partitions to GPT now but MBR2GPT says it cannot find the OS partition. Any help will be greatly appreciated.
      My ComputerSystem Spec

  7.    1 Week Ago #1216

    Make it once - reuse it forever!


    @Kari

    It's may be the tenth time I do that procedure in last few years.
    I wrote a simple .BAT that will manage all steps...
    No brain - It help me ... instead of forgetting and have to relearn it every time!
    If you feel it worth to add to your tutorial, feel free to do it (and no need to mention me)

    AND A BIG THANKS FOR ALL YOUR WORK !

    Relocate.bat



    Code:
    @Echo off
    Echo . Bat File to  relocate users files using D:/relocate64W10.xml
    Echo Close to exit
    pause
    Echo . Ensure that WMP Network Sharing Service is stopped
    net stop wmpnetworksvc
    Echo Close to exit
    Pause
    Echo . Now the Sysprep command itself. 
    Echo . skip the rest BUT create a TEMPORARY account - 
    Echo - OOBE boot requires a user account to be created 
    Echo ! It may take some  time to have the job done ( a lot in some case)
    Echo !! Don't be afraid if you are left for long with BIOS logo on your screen !!
    Pause
    %windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:d:\relocate64W10.xml
    REM
    REM
    REM  Hope it Help - Alain


    This is my quite standard Relocate64W10.xml contents:

    Code:
    <?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>
    Alain
    Last edited by AlainCh2; 1 Week Ago at 09:22. Reason: format
      My ComputerSystem Spec

  8.    5 Days Ago #1217

    I need Help and quick info, please:

    Now I have relocated everything on DATA = D:

    If I need to change the letter on that drive, say E: what is the best approach?

    a) relocate on a temporary drive TEMP = Z: then re-label DATA = E:

    b) Now DATA is already populated - clean it before moving it

    c) re-label DATA = E: ...and forget W10 ... it will not complain

    Sure c) would be the best... )

    Alain
      My ComputerSystem Spec


 

Tutorial Categories

Move Users Folder Location in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
I'm trying to move all of my documents to a new hard drive and I successfully did it with all of them except for the "Music" folder; each time I try to move it to a new location I get this error message: 67258 Is there a way to correct this?
I used the tutorial to move my user folders to a spare, second drive in my laptop. Now I'm thinking about changing it from a spinner to an SSD and I'm wondering what steps I should be considering, before I make that swap, to preserve my user folders...
Folks, I don't want to move my Users folder. (Kari has an excellent tutorial on that. I did it on a previous system and that's not a solution for me.) My C drive is an SSD and my downloads are at 120GB. Sure, I can move things manually, but...
Machine: Alienware M17x R5 Laptop OS: Windows 10 Pro (upgraded from Windows 7 Pro) What caused the problem: 1. I wanted to change the locations of the users directory from C:\ (SSD partition that contains the OS) to W:\ (HDD) 2. I...
Hi! I have a computer that is stuck in an "automatic repair" loop. On this machine, the Users folder is on a separate physical hard drive than the system drive. I have concluded that I will have to reset the PC. What is the best way to move...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:24.
Find Us