Resetting and Removing Windows 10 Password using Command Prompt is straight forward as long as you are the administrator. Run CMD as an Admin then enter the following commands.
- net user <username> <password> remember to replace your username and password with your own.
- For new local admin enter the following.
- net user <username> /add
- net localgroup administrators <username> /add
That is all you need when you can sign in and access Cmd as an Administrator.
For more check here https://4sysops.com/archives/reset-a-windows-10-password/