How to change username of a online account?

anycodes 0 Reputation points
2026-08-17T05:16:35.6633333+00:00

Problem:

  • Format PC
  • Sign-in with Microsoft Online Account
  • Windows 11 chose a name for my account without askin

Please show me how to change/set the user name of a online account (C:\Users\XXXX)?

Please do not tell me to change name in https://account.microsoft.com/profile/edit-name because Windows 11 does not take that for the account name on the PC (C:\Users\XXXX).

User's image

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

3 answers

Sort by: Most helpful
  1. DaveM121 917.7K Reputation points Independent Advisor
    2026-08-17T05:52:54.4466667+00:00

    1

    Currently when you format or reset your PC, when you create the user profile, Windows automatically names the user folder with the first 5 characters of your name or Email address.

    Microsoft indicate it is not safe to try to change the name on the user folder, because it is referenced in so many locations in the registry and changing the name on the user account folder may corrupt the user profile.

    2

    The best option is to create a new user account as a local account by not adding the Microsoft account details, then the user folder should be named correctly, you can then add the Microsoft account details.

    3

    Also, Microsoft have finally realized this user folder naming convention is a problem and there is an update being released soon where we will be able to provide a specific name for the user folder when we are creating a user after formatting or resetting a PC.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. anycodes 0 Reputation points
    2026-08-17T05:24:50.8433333+00:00

    Why Windows 11 Installation won't simply let users type their preferred name?!

    Was this answer helpful?

    0 comments No comments

  3. anycodes 0 Reputation points
    2026-08-17T05:23:51.3933333+00:00

    How to change it?

    User's image

    Was this answer helpful?

    0 comments No comments

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.