Change Microsoft Account Name From Settings 

When you use a Microsoft account to login to Windows 10, the account name is stored by Microsoft in the cloud. You need to change it from your Microsoft profile. Any name change you make will affect any Microsoft products you use (Microsoft 365, Skype, the Xbox network, etc.) under the same account. This name can be different from your local account’s display name. You can sign in to the Your info page on the Microsoft website or go into your account via Settings on Windows. Reboot the computer to see the name change. This can take some time as Windows may using the information in the cache. After some time, Microsoft syncs the information from the cloud to your computer. To get the name to update quickly, you can switch to your local account, then sign back into your Microsoft account. 

Change the Local Account Name From Control Panel

You can change local account names from the classic Control Panel. Sign in to the Administrator account and go through the steps below. Then sign out and sign in to the account with the new name. You will not be able to change the display name if you do not have admin privileges on the computer.

Change the Local Account Name From NETPLWIZ Advanced User Accounts Settings

Netplwiz is a native executable file that can help you manage user accounts in all versions of Windows. This account management tool is hidden, but you can launch it from Windows search or the Run dialog (Windows Key + R).  The name change will be instantly visible on the Sign-out and Sign-in screen.