Windows 10 comes with a powerful utility, Command Prompt. It can be used to execute various functions in Windows 10 operating system. In this guide, we will be telling you how you can use Command Prompt (cmd.exe) to reset the admin Password and create new admin on Windows 10 by using a simple command.
Steps to Reset Windows 10 admin password using cmd.exe
Step 1: Press Win + X and select Command Prompt (Admin) from the menu.
Step 2: When the dialogue box prompts, click “Yes” to run command prompt as admin in Windows 10.
Step 3: Enter the following command in Command Prompt to reset local admin password:
net user <username> <password>
Step 4: You can also create a new admin account with this command:
net user <username> /add
net localgroup administrators <username> /add
Step 5: That’s it. You can now successfully reset your admin password or if you’ve done step 4 also, then you have a new admin account as well.
This guide will work if you are able to access your Windows 10 OS but and want to reset Windows 10 admin password.