Hello,
If you forgot or lost your password for your Windows device, you can change or reset it. Microsoft takes security seriously. Microsoft accounts, the Windows operating system, and the other Microsoft products include passwords to help secure your information. The official article provides some options that you can use to reset or recover your password if you forget it. Be aware that, if these options don’t work, Microsoft support engineers can't help you retrieve or circumvent a lost or forgotten password.