Assuming you're running some version of Windows, there is a free stand-alone bootable (USB or CD) utility that can be used to recover or reset the password. It's called the Offline NT Password and Registry Editor.
https://itoolab.com/windows-password/offline-nt-password-registry-editor/
The documentation is dated, but it does work with all versions of Windows.
If you're on a Mac you'll want to boot into single user mode and then just reset your password with the "passwd" command line utility. Same with any Linux or BSD system.