If you use a Microsoft account to sign in to your computer, use this link to reset your password. If you have a local account only and you forgot the password, there are two things you can do:
1. Try to remember the password.
2. If you can't remember the password, you need to reset the PC and lose all the files and settings.