If you are locked out of a local Windows account and do not have a reset disk, advanced users often utilize a Linux Live USB (like Ubuntu or a specialized tool like Offline NT Password & Registry Editor).
Search for > User Accounts > Manage another account . Select the locked account and click Change the password . 3. Finding the Password on macOS how to find the administrator password