Forum Discussion
Garciab
Feb 19, 2025Iron Contributor
How can I reset windows 11 password using command prompt
Yesterday I suddenly found that I forgot the login password of my Windows 11 computer. The key is that there are many important files stored on this computer, and I can't reinstall the system. I sear...
Jesse_PooleL
Feb 19, 2025Iron Contributor
If you can still enter Windows 11 and have administrator privileges, you can use the net user command to directly reset Windows 11 password using command prompt. The method is super simple.
Steps:
- Open CMD with administrator privileges
- Right-click the "Start Menu" → Select Command Prompt (Admin) or Windows Terminal (Admin)
- View the current account list
In CMD, enter:
net user
This command will list all local accounts and find the username you want to reset the password for.
4. Reset Windows 11 password
5. Directly enter:
net user your username new password
Example: If your account name is Admin and the new password is set to 123456, then the command is:
net user Admin 123456
Done!
If the command is executed successfully, it will display "Command completed successfully", and you can log in with the new password.
- If it prompts "Access denied" or "Insufficient permissions", it means that the current account is not an administrator and you need to enter safe mode or advanced startup to run CMD.
- If the net user command doesn't work, you may need to enable the built-in administrator account to execute the command.
Reset Windows 11 password using command prompt is one of the quickest methods and is suitable for most situations. Try it now!