May 30th, 2023

How do I change the directory Windows uses for user profiles? revisited

Some time ago, I noted that you can use the Profiles­Directory setting in your unattend file to move the directory that Windows uses for user profiles.

The classic documentation has been updated to emphasize that the setting should be used only in a test environment, and setting it prevents the system from being serviced or upgraded.

A newer version of the documentation repeats the emphasis that the setting should be used only in a test environment, although it no longer blocks upgrades starting in Windows 10. However, moving the profiles directory does prevent Store apps from working. And since many parts of the system are provided in the form of Store apps, moving the profiles directory will make many parts of the system inoperable.

TL;DR: Don’t use it.

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

10 comments

Discussion is closed. Login to edit/delete existing comments.

  • Joshua Hudson · Edited

    What people actually want to do is point their user profiles onto another drive while keeping the system created (and store created and service created) profiles on the system drive.

    I find the account per service to be ugly but there's no good way of getting out of it so it stays.

    Right now the best solution seems to be make a junk user at install; repoint it to other drive, make your main user, repoint it...

    Read more
    • kate cole

      you can achieve it via junction points without breaking anything.

  • Harri Talvitie · Edited

    I noticed recently that one very popular Windows Store app, WSL Ubuntu, does not allow the installation to be moved to a different drive. As a workaround, I exported the original distribution, reinstalled WSL Ubuntu to my D: drive, and finally imported the backup I made earlier.

    Installing to D: is possible, as Windows allows nowadays the user to modify the default installation location for apps.

    Haven't encountered any issue from this "forced move" of WSL Ubuntu...

    Read more
  • Mark Magagna

    I don't understand why this doesn't work. It should work.

    This was very popular when SSDs first came out because they were very small. The idea was that you put the OS and possibly swap on the SSD for responsiveness, and put everything else on a hard drive because the SSD didn't have room for anything else.

    It's not as much of a problem (but it's not zero) as SSDs have increased in size to the point...

    Read more
    • Dan Bugglin

      Definitely seems odd the Store wouldn't support this. If anything I'd expect new tech to support it more so than older stuff.

      It could be the Store wants the profile on the same physical drive as Windows. Some apps don't work right if you put some of their files/folders on separate drives from other files/folders, since some of the file move APIs won't move files across drives (only between folders on the same drive) so it...

      Read more
      • Jan RingoÅ¡

        > Definitely seems odd the Store wouldn’t support this

        Probably some “modern” programmer coding the “modern” Store just hardcoded

        C:\Users

        and was done with it. And instead of allocating programmer to fix that, they allocated a documentation writer to document the current state, because of course that’d seem like the correct approach for contemporary Microsoft.

      • Justin Dunn · Edited

        From what I understand of UWP Apps (Universal Windows Platform Apps, A.K.A Windows Store Apps or Modern Style Apps in Windows 8), they run under the Windows Runtime which provides restricted/virtualized access to the file system/registry.
        So to a certain extent, I don't think the UWP App even know where the App is installed to or where the App Data is, they just call a Windows Runtime API, it returns a path and the UWP...

        Read more
      • Michael Taylor

        Store apps themselves can be on any drive. They do not need to be on the OS drive or even the drive with the user profile. I personally have mine on a separate drive. The only requirement is that it can be secured with NTFS.

        Having said that I don't believe the issue is with the runtime behavior of the store apps as you can change the directory of where user profiles are stored in...

        Read more
  • Rafael Ontivero

    I wonder why they simply remove the feature and even the function call from Win32 in the next versions. If it does not work, I don’t even understand why someone will need to test this.

  • Michael Taylor

    If it is going to break a lot of the core Windows apps (like Edge, Notepad, etc) then why bother supporting it anymore anyway? Shouldn’t this trigger a warning/error and then ignored so nobody uses it anymore? Even in a test environment what would be the use case for changing it since you couldn’t really verify the test system is working if the store apps don’t work anymore.