A forgotten Windows password isn’t the end of the world. You don’t have to trash the computer, or even perform a dreaded factory restore. There are many ways to remove or reset a Windows password, but how quickly and easily it can be done depends on the situation.
Password reset methods differ between Microsoft and local Windows accounts. If you aren’t sure which type of Windows account you have, it’s simple to find out: turn on your computer and see if an email address is displayed above where you enter your password to login. If there’s an email, it’s a Microsoft account. If not, it’s a local account.