There are only two Microsoft-approved ways to reset a Windows password, which are discussed at the bottom of this page. However, there are a number of reasons why one method or the other is often not an option.
How to Reset Your Password in Windows 10 If You Forgot It – Easy
Fortunately, there is an “unapproved” but completely safe and very effective way to reset passwords for Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.
You can reset your computer's password by temporarily overwriting the Ease of Access executable with the Command Prompt executable from outside Windows. You then enable this now-overwritten feature at the Windows logon screen to open the Command Prompt. You then reset your account password using the net user command.
Yes, I understand that this sounds complicated. Although the whole process is quite complicated and requires you to work via a command line, I think it is within the capabilities of everyone reading this.