I suggest to perform clean install and then setup a new account for you.
Here's a detailed community guide for this:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a computer from a former employee, he was set up as administrator and no longer remembers the password. How do I change the administrator
I suggest to perform clean install and then setup a new account for you.
Here's a detailed community guide for this:
Hi! Only if you have access to another administrator account on the PC, you can sign in with that other admin account and either reset the old local account’s password through Computer Management > Local Users and Groups > Users > Set Password, or change another user to Administrator from Settings > Accounts > Other users > Change account type. Microsoft’s guidance also confirms that account-type changes are done from Accounts > Other users in Windows.
If there is no other working administrator account on the device, there is no supported shortcut to take over that admin profile directly; in that case the practical options are to recover the original account or rebuild the PC and create a new administrator account.