Hello.
Reset your Microsoft account password: If you're using a Microsoft account to sign in to Windows, you can reset your password by following these steps:
On the sign-in screen, select the "I forgot my password" link below the password text box.
Follow the steps to reset your password.
If you added a security question when you set up a local account for Windows 10, you have at least version 1803 and can answer the security question to sign back in.
For versions prior to Windows 10, version 1803, you can't reset your local account password because there are no security issues. You can reset your device to choose a new password, but this option will permanently delete your data, programs, and settings.
Note: Microsoft support engineers can't help you retrieve or bypass lost or forgotten passwords.
More details you can refer to this link:
https://support.microsoft.com/en-us/windows/change-or-reset-your-windows-password-8271d17c-9f9e-443f-835a-8318c8f68b9c'
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.