Share via

how to change user folder name

Tiny Abode 0 Reputation points
2026-03-24T19:47:20.2933333+00:00

I need to create a custom name for my user folder. I have tried to use "SetDefaultUserFolder.cmd" at Sign-in page during Win11 setup but could not manage it.

Windows for home | Windows 11 | Accounts, profiles, and login
0 comments No comments

2 answers

Sort by: Most helpful
  1. EmilyS726 222.6K Reputation points Independent Advisor
    2026-03-24T20:23:24.4566667+00:00

    Because this username is being referenced in a lot of places including registry, to maintain your user profile integrity, it is best that you create a new user instead, and then migrate your Microsoft account (if you have it linked) and data over.

    Here are the steps:

    1. Type netplwiz in the search on the taskbar and hit enter. When launched, click on "Add". On the next window, click on the bottom where it says to create an account without Microsoft email. This will allow you to define your own username. Make sure it doesn't contain space or special character. Set it up as a local user.
    2. When the above user is created, back to the main netplwiz page, double click on this new user, go to the Group Membership tab, make it administrator. Save the change.
    3. Go to Windows Settings > Accounts > Your Info. Click on "Sign in as a local user instead". Follow the steps to finish the rest. This will release the association of your Microsoft email to this Windows log in.
    4. Restart the computer. Sign into the new user you created in Step 1.
    5. Go to Windows Settings > Accounts > Your Info. Click on "Sign in with your Microsoft account". You can then use the same email address you released on Step 3. This will tie your Microsoft email address now to this new Windows log in.
    6. If you have data at the old username folder, go to C:\users\old username folder, find them and copy them into C:\users\new username folder.
    7. Type sysdm.cpl in the search on the taskbar and hit enter, go to Advanced tab, click on the "Settings" button at the User Profile section. Then delete the old user profile.
    8. Launch netplwiz again, delete the old user from there.
    0 comments No comments

  2. Q&A Assist
    2026-03-24T19:47:35.1933333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Windows does not support directly renaming an existing user profile folder (C:\Users<name>) in a safe, supported way. The recommended approach is to create a new user account that has the desired name and then move data to it.

    A supported workflow is:

    1. Create a new user account with the desired folder name and make it an administrator.
      • Follow the steps in Manage user accounts in Windows (see reference) to add a new local or Microsoft account and configure it as an administrator.
    2. Sign in with the new account once so Windows creates the new profile folder under C:\Users with the new name.
    3. Copy data from the old profile to the new one:
      • Sign in with the new account.
      • Open File Explorer (select Start, type file explorer, and select File Explorer).
      • Go to This PC → the system drive (usually C:) → Users.
      • Open C:\Users\<Old_Username> and select all files and folders.
      • Copy them, then open C:\Users\<New_Username> and paste.
      • Do not change File Explorer view options to show hidden files or protected operating system files while doing this.
    4. Restart the PC and continue using the new account. Once everything is confirmed working, the old account can be removed from Manage user accounts in Windows if no longer needed.

    If a Microsoft account is used and the new account was created as a local account, it can be switched to a Microsoft account later using the guidance in Change from a local account to a Microsoft account in Windows (linked from the corrupted profile article).

    Using scripts like SetDefaultUserFolder.cmd during setup is not a supported method documented in the provided references; the supported method is to create a new profile and migrate data.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.