INFORMATICS

The Best

How to change Windows user name in CMD

User Rating: 1 / 5

Star ActiveStar InactiveStar InactiveStar InactiveStar Inactive
 

How to change Windows user name in CMD

First check existing users in the system

open command prompt as administrator and enter

net users

Next

You can use wmic for this. The command is:

wmic useraccount where name='currentname' rename newname

Example, if your username is "user" and you want to rename to "user1" the following command would be used.

wmic useraccount where name='user' rename user1

Please note, you need administrative privileges to use this command, so make sure you start your command prompt using run as administrator.

EDIT: suddenly you mention in the comments that you do NOT want to change the Username, but the Full Name instead.

The command for that is here:

wmic useraccount where fullname='currentname' rename newname

You can substitute fullname or name for any of the following:

AccountType  Description  Disabled  Domain    FullName     InstallDate  LocalAccount  Lockout  Name   PasswordChangeable  PasswordExpires  PasswordRequired  SID  SIDType  Status

You can use the following command to see a list of all users with all their settings:

wmic useraccount list

 

ways to change user account name in Windows 10:

 Change account name in Control Panel.
1: Access Control Panel/User Accounts and Family Safety/User Accounts.
2: Choose Change your account name.

Change account name in Control Panel.
1: Access Control Panel/User Accounts and Family Safety/User Accounts.
2: Choose Change your account name.
3: Type a new name in the box and tap Change Name.

Change account name in Local Users and Groups.

1: Open Run by Windows+R, enter lusrmgr.msc and hit OK to open Local Users and Groups.
2: Open the Users folder, right-click a user and select Rename in the menu.
3: Type a new name in the name box.

Change administrator or guest name in Local Group Policy Editor.
1: Access Local Group Policy Editor.
2: Open Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options/Accounts: Rename administrator account (or Accounts: Rename guest account).
3: Type new name and hit OK.

 

Search