Quick Links
If the person that set up your computer gave you an unusual username, or you just fancy a change, then it’s worth knowing how to change it in Windows 10 andWindows 11.
As with many things in Windows, it’s easy to do, but it’s not always easy to figure out where to start. And, to add more confusion to the mix, there are two types of Windows accounts - local users and Microsoft online accounts.
Don’t worry, though, it’s simple to change your username on both types of accounts, with a little know-how.
There are a few ways to go about this task, and we’ll take you through each method below. If you have a Microsoft account, you’ll want to try the first method, and if you have a local account, skip to the second.

How to change your username on the Microsoft website
During set-up, Microsoft heavily suggests creating a Microsoft online account rather than a local user, so there’s a good chance you have one of those.
If that’s the case, then just follow the steps below:
It’s worth noting that it can take a little while to see the username change on your PC. We recommend restarting your computer after the name change to see it take effect.
How to change your username with Control Panel
If you’re using a local account, you can change your username offline in Windows. Here’s how to change your username with Control Panel:
You might need to sign out and sign back in again to see the name change take effect - or you can restart your computer.

How to change your username with the Run command
If you prefer the more direct approach, you might want to try using the Run command to edit your username. Here’s how that works:
How to change your username in PowerShell
If you want to feel like an elite hacker, Windows PowerShell is the way to go. You can edit your username just by typing a couple of lines of code. Here’s what you need to do:
- Click on the start menu and type"PowerShell"

Type the code below and pressEnterto see your current username
Enter the code below, replacing the placeholder text with your current and desired usernames
Hit enter, and your name will be changed
Log out and back in again, or restart your computer to see the change