Windows 11 Pro, update 21H2 build 22000.51
For me, when I sign in with a Microsoft account, my home directory name is "daich." I want it to be "daichi", but it becomes daich every time. By following the steps in this article, you can change the name of your home directory.
In addition, this article has been confirmed to work with "Windows 11 Pro, update 21H2 build 22000.51" which is in the development stage. Some content may differ if you are using a later update or build or retail version. Also, if you are using other editions such as Home, please note that the method described may not work.
Windows Home Directory
On Windows, "C:\Users\name\" is the user's home directory. A home directory is sometimes called a user folder or home folder. Documents, photos, and application data saved by users are basically saved under the home directory.
Windows 11 basically requires you to sign in with a Microsoft account, and the "name" part of your home directory is automatically generated from your Microsoft account. Because of this, the name of the home directory that's created isn't necessarily what you want. Many users will not have any problem with it as it is, but if you often deal with terminal applications, this name may bother you.
Since Windows rarely does things like change a user's home directory, there is no easy way to change the home directory. However, similar things can be achieved by combining the basic functions provided. If you know this method, you will be able to apply it, so I think there is no loss even if you know it.
How to change the name of the home directory
The method for changing the name of the home directory is as follows.
This is how you create a new account with the desired name and switch to it. Even if you migrate your data, you'll have to redo some settings, and in some cases you'll need to reinstall your applications. However, this procedure accomplishes the goal of renaming your home directory in a relatively safe manner.
The point of this method is to switch to a Microsoft account after creating a local account. By creating a local account, you can create a home directory with the name you want to use.
Change an existing account from a Microsoft account to a local account
Since you want to use a Microsoft account with the new account, switch the existing account to a local account first. To switch to a local account, select "Account" → "Your info" → "Switch to signing in with a local account" from the Settings application.
When you switch to a local account, keep the username you entered for your existing account.