Change a Windows local password with net user, understand error 5 and 8646, or create bootable password reset USB when CMD is unavailable.
Run net user "User Name" in an administrator Command Prompt to change or reset a local Windows password without displaying it on the screen. If you are locked out and cannot open an elevated terminal, AOMEI Partition Software can create bootable media to reset an authorized local account.
The net user command manages local or domain user accounts, but changing another account normally requires administrator rights. It changes the account password, not the Windows Hello PIN used on the sign-in screen.
Do not confuse net user with net use. The net use command connects or disconnects network shares and mapped drives; a password entered with net use is only a network credential and does not reset a Windows account password.
The safest command uses an asterisk so the new password is entered through a hidden prompt. Complete the process from an administrator Command Prompt in Windows 11 or Windows 10.
Search for Command Prompt or Terminal. Select Run as administrator. Approve the User Account Control prompt.
The Windows sign-in screen may show a display name rather than the account’s actual local user name. List the available accounts before resetting anything.
Type: net user
Find the intended account in the results. If its name contains spaces, place the complete name in quotation marks in every later command.
Use the following command and replace User Name with the account returned by the previous step.
net user "User Name" *
Enter the new password when prompted, and enter it again to confirm. Windows does not display the characters while you type.
net user "User Name" NewPassword
However, it exposes the password in the command window and may create problems with spaces or special characters.
The net user command helps only when you can enter Windows and open an elevated terminal. If you are locked out of a local account, AOMEI Partition Software offers a visual reset process that starts from bootable media instead of the inaccessible Windows installation.
This option can reset or remove a local Windows password without reinstalling the operating system. It is useful for users who do not have another administrator session, cannot identify the correct command syntax, or keep receiving an access-denied error.
A safe and reliable disk partition management tool that helps you migrate OS to SSD or HDD, reorganize disk space, and improve overall PC performance.
With AOMEI Partition Software, you can:
Step 1. Install and launch AOMEI Partition Software on an accessible Windows PC. Select Tools > Reset Windows Password, then click Next.
Step 2. Connect a USB drive and select USB Boot Device > Proceed. Creating the media formats the USB drive, so copy its existing files elsewhere first.
Step 3. Connect the completed USB to the locked PC. Open its Boot Menu or BIOS/UEFI settings, select the USB device, and start the recovery environment.
Step 4. Choose the installed Windows system, select the authorized local account, and choose Remove Account Password or Reset Account Password. If you select Reset, enter and confirm the new password.
Step 5. Click Reboot Computer when the operation finishes. Remove the USB drive and sign in with the new local password.
The feature currently handles local Windows passwords, not Microsoft login accounts. A BitLocker-encrypted system drive may not appear until it is decrypted with the proper recovery information, and password-reset feature availability depends on the AOMEI Partition Software edition.
Use net user "User Name" when you can open an administrator Command Prompt and need to change an authorized local account password. For a locked local account, use AOMEI Partition Software to create bootable reset media; use Microsoft recovery for online accounts and contact IT for managed domain accounts.
1. Can net user change a password without administrator rights?
Changing or resetting another local account usually requires an elevated Command Prompt and administrator permission. If you know your own current password, use Windows Settings or Ctrl + Alt + Delete to change it through the normal account process.
2. What does net user username do?
The command tells Windows to request a new password for the specified local account and confirm it through hidden prompts. The asterisk keeps the password out of the visible command, making it safer than placing the new password directly on the command line.
3. Can net use reset a Windows password?
No. net use manages connections to shared folders, mapped drives, and other network resources, while net user manages Windows user accounts; a password supplied with net use authenticates a network connection but does not change the account password.