How To Change Username In Command Prompt Windows 10?

624 Views
0 rating based on 0 reviews

How to Change Username in Command Prompt Windows 10? The command prompt is a powerful tool that can be used to carry out a variety of functions. However, you can't access the command prompt if you don't choose the right username. In this article, we will explain the method to change the username in the Command Prompt of Windows 10 in a few easy steps.

Change Username in Command Prompt Windows

When you choose the username when setting up a new Windows 10 system may catch you off guard. If this is the case, you go with whatever comes to mind initially or something random and fleeting that you’ll modify afterward. Sometimes we want to change the username for security reasons. But, unexpectedly, changing your username in Windows 10 isn’t a pretty simple task.

You can either make a new user profile or alter the username of an existing account to give it a new name in Windows 10. Today, I’ll explain how to use the “Command Prompt” program to change the username in Windows 10.

Changing the Username in Command Prompt

  1. Type “cmd” in the search bar. Choose the “Command Prompt” option and launch the program as an administrator.
    run the Command Prompt
  2. In “Command Prompt,” type this command: wmic user account where name= “your current username” rename “new username” (as an example, if the current username is “X,” put “X” in the “your current username” part and put the new username in the “new username” part).
  3. Reboot your pc and log in using the new username.

There are other efficient ways to rename your username in Windows 10, and I’ll talk about them below -

Using the PowerShell Program

  1. Click on the “Windows” and the “X” button to launch the “Winx” menu. Click on “Windows PowerShell (Admin).”
    click on Windows PowerShell
  2. Type this command: Rename-LocalUser -Name “your current username” -NewName “new name” (put your present username in the “your current username” part and your new username in the “new name” part).
    rename username on Windows PowerShell
  3. Reboot your pc to save the changed username.

Using the Control Panel

  1. Type “Control” in the search bar and navigate to the “Control Panel” program.
    the Control Panel program
  2. Sort the view by large icons. Go to “User Accounts.”
    open the User accounts option
  3. Go to “Manage another account.”
    Manage another account option
  4. Pick the account you want to change the username of.
    choose the account
  5. Click on “Change the account name.”
    Change the account name option
  6. Type your new username and navigate to the “Change name” option.
    the Change name option

Using the Microsoft Account

If you’re signing in to Windows 10 with a Microsoft account, you’ll need to alter your username online. Follow the steps outlined below –

  1. Go to the Microsoft profile page in any browser and sign in to your account.
  2. Go to “Your info” and click on “Edit name.”
    click on Edit name
  3. Put your first name and last name and click on the “Save” option.

Using the “netplwiz” Command

  1. Click the “Windows” key and “R” key together to open the “Run” option.
  2. Type “netplwiz” (without the quotation marks) and click on “OK.”
    Type netplwiz
  3. Under the “Users” tab, tick the checkbox for password permission. Select your account and click on “Properties.”
    open the account properties
  4. Type the new username in the “User name:” box and click on “OK” to save the changes.
    change the current username

How do I Find My Username Using CMD?

  1. Open the “Command Prompt” program.
  2. Type “whoami” (without the quotation mark) and click the “Enter” button.
  3. The present active username will be shown.

Summary: Change Username in Command Prompt Windows 10

  • Command Prompt is a command line interpreter application available in most Windows operating systems. It's used to execute entered commands.
  • In order to change the username of the current user account on your computer via command prompt, you should type the following command:
  • netplwiz
  • This will open the User Accounts window.
  • You should select the user account that you want to rename, and then click on Properties button.
  • This will open the user's property sheet.
  • Type a name in the Full Name field and click Apply button.